Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove itemIds from FieldAccessArgs #4936

Merged
merged 2 commits into from
Feb 25, 2021
Merged

Conversation

timleslie
Copy link
Contributor

@timleslie timleslie commented Feb 24, 2021

Field level imperative access control is applied to each item individually, even in multi-valued mutations. itemIds don't make sense to pass into these functions. Developers should be using itemId for any checks.

Found this issue as part of documenting the access-control API in #4922

@vercel
Copy link

vercel bot commented Feb 24, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/keystonejs/keystone-next-docs/GSKskpk9p3epzEU4hYvfgnwNdBG6
✅ Preview: https://keystone-next-git-remove-item-ids-from-field-args-key-c40541.vercel.app

@timleslie timleslie marked this pull request as draft February 24, 2021 04:13
@timleslie timleslie marked this pull request as ready for review February 24, 2021 04:14
@timleslie timleslie requested review from a team and JedWatson and removed request for a team and JedWatson February 24, 2021 04:16
@timleslie timleslie marked this pull request as draft February 24, 2021 04:29
@timleslie timleslie marked this pull request as ready for review February 24, 2021 04:29
@timleslie timleslie requested a review from emmatown February 24, 2021 04:29
@timleslie timleslie marked this pull request as draft February 24, 2021 04:29
Copy link
Member

@emmatown emmatown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

@timleslie timleslie marked this pull request as ready for review February 24, 2021 04:48
@vercel vercel bot temporarily deployed to Preview February 25, 2021 00:12 Inactive
@timleslie timleslie enabled auto-merge (squash) February 25, 2021 00:12
@timleslie timleslie merged commit 6469362 into master Feb 25, 2021
@timleslie timleslie deleted the remove-item-ids-from-field-args branch February 25, 2021 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants