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

Custom Up and down roles inheritence #15

Closed
3 tasks
Exelord opened this issue Apr 17, 2016 · 1 comment
Closed
3 tasks

Custom Up and down roles inheritence #15

Exelord opened this issue Apr 17, 2016 · 1 comment
Milestone

Comments

@Exelord
Copy link
Owner

Exelord commented Apr 17, 2016

Some roles have to have downgraded level after down inheritance.
Eg.
When you grant user to a resource A as Owner and then create a child for resource A as resource B you want to inherit role from A to B but with downgraded level eg. as manager.

In fact in resource A user will be owner and in resource B will be manager

TODO:

  • create a column named downgraded_role and set as nil by default
  • rework on role_for method to obtain a correct downgraded role if exist
  • write tests

And think about upgraded_role... Maybe there will be also some use cases.

@Exelord Exelord added this to the Roles milestone Apr 17, 2016
@Exelord
Copy link
Owner Author

Exelord commented Jul 18, 2016

Done! :) (ONLY DOWNGRADED_ROLE)

@Exelord Exelord closed this as completed Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant