Skip to content

Commit 33a154b

Browse files
committed
pro-1.26.1
1 parent 9b9c97f commit 33a154b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG-pro.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
### New Features
88

9+
# 1.26.1 (23 Jan 2023)
10+
11+
- Pundit integration: improve error message when a `Scope` class is missing
12+
913
# 1.26.0 (19 Jan 2023)
1014

1115
### Breaking Changes
@@ -14,6 +18,11 @@
1418

1519
Previously, the integration silently permitted all items in the array; this default has been changed. See #4726 for more discussion of this change.
1620

21+
If you encounter this error:
22+
23+
- add `scope: false` to any fields that return arrays to get the previous behavior (no authorization applied to the array; each item authorized on its own)
24+
- Or, apply [scoping](https://graphql-ruby.org/authorization/scoping.html) by manually configuring a `pundit_policy_class` in the field's return type, then adding a `class Scope ...` inside that policy class. See the Pundit docs for the scope class API: https://github.com/varvet/pundit#scopes.
25+
1726
# 1.25.2 (29 Dec 2023)
1827

1928
### New Features
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
33537b3b1a5afef64ea25817d607afae983de531902c18dc5c99bd4b52538b5b03cb3f7032dc3a53b5690ef85a7abd7a0422cdead9a871a187b3bc755ba4062c

0 commit comments

Comments
 (0)