You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Some roles have to have downgraded level after down inheritance.
Eg.
When you grant
user
to a resourceA
asOwner
and then create a child for resourceA
as resourceB
you want to inherit role fromA
toB
but with downgraded level eg. asmanager
.In fact in resource
A
user will beowner
and in resourceB
will bemanager
TODO:
downgraded_role
and set asnil
by defaultrole_for
method to obtain a correct downgraded role if existAnd think about upgraded_role... Maybe there will be also some use cases.
The text was updated successfully, but these errors were encountered: