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

Add specific permissions to roles #8

Merged
merged 3 commits into from
Jan 18, 2019
Merged

Conversation

irisfaraway
Copy link
Member

@irisfaraway irisfaraway commented Jan 18, 2019

https://eaflood.atlassian.net/browse/RUBY-58

This PR gives roles permission to perform specific actions.

These actions are based off the rules in the old back office, as documented here: https://github.com/DEFRA/waste-exemptions-back-office/wiki/Back-office-system-user-roles

Note that this doesn't implement the actions themselves, just sets out the permissions.

https://eaflood.atlassian.net/browse/RUBY-58

This PR gives roles permission to perform specific actions.

These actions are based off the rules in the old back office, as documented here: https://github.com/DEFRA/waste-exemptions-back-office/wiki/Back-office-system-user-roles

Note that this doesn't implement the actions themselves, just sets out the permissions.
@irisfaraway irisfaraway added the enhancement New feature or request label Jan 18, 2019
@irisfaraway irisfaraway self-assigned this Jan 18, 2019
Permissions cascade fairly cleanly in the back office - in addition to having its own permissions, each role also inherits the permissions of the role 'below' it.

This also means we can use shared examples for the specs to reduce duplication.
@irisfaraway irisfaraway merged commit 82ee38f into master Jan 18, 2019
@irisfaraway irisfaraway deleted the feature/role-permissions branch January 18, 2019 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants