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

Permission system done right. #381

Open
ghost opened this issue Mar 19, 2020 · 0 comments
Open

Permission system done right. #381

ghost opened this issue Mar 19, 2020 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Mar 19, 2020

Permission is an ideal example of the context contract additional rules and composition.

We have a nested story with a more strict permission rule than the wrapper story.

user has its place in each context contract and we attach different permission validation to it in each contract.

When the user will be assigned in the wrapper story, we'll run all its permission validators from all nested stories. So we'll fail early.

Some nested stories will run in the Celery task because of the Delegate feature. We can fail that early.

@ghost ghost added the blog label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

0 participants