-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid caching permissions with different arguments (#8670)
* fix: Avoid caching permissions with different arguments Permissions are cached by function name. When these depend on the arguments passed, they should have their own cache key, see https://the-guild.dev/graphql/shield/docs/rules#limitations * Make isViewerOnTeam strict The passed function might access source or args and thus we should use the strict cache.
- Loading branch information
1 parent
0fdef2d
commit a6dcd7f
Showing
3 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters