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

Entity based (more granular) permissions #617

Closed
BeepLoveKarki opened this issue Jan 5, 2021 · 5 comments
Closed

Entity based (more granular) permissions #617

BeepLoveKarki opened this issue Jan 5, 2021 · 5 comments
Milestone

Comments

@BeepLoveKarki
Copy link
Contributor

Having entity-based custom permissions seems to be needed in some cases. So, allowing to restrict permission to admins on pre-built mutations can be a great feature if that is possible.

@michaelbromley
Copy link
Member

Hi, can you illustrate the idea a bit more fully. It is not totally clear what you mean from that description.

Ideally provide some usage examples with code (can be pseudo-code).

@BeepLoveKarki
Copy link
Contributor Author

Sure. Let me clarify with an example.

Suppose an admin is not allowed to delete any payment method. Some form of custom permission that can be assigned to him/her for that restriction.

And similar for any other mutations.

@michaelbromley
Copy link
Member

OK, so are you asking for more granular permissions, so rather than UpdateSettings, we have UpdatePaymentMethod, UpdateTaxRate etc?

@BeepLoveKarki
Copy link
Contributor Author

BeepLoveKarki commented Feb 18, 2021 via email

@michaelbromley michaelbromley changed the title Entity based custom permissions Entity based (more granular) permissions Feb 18, 2021
@creative-ae
Copy link

any update on this , this will be great help o restrict some setting access . currently its either having all or nothing

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

No branches or pull requests

3 participants