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

remove role won't remove child roles #38

Open
olivierto opened this issue Jan 25, 2019 · 0 comments
Open

remove role won't remove child roles #38

olivierto opened this issue Jan 25, 2019 · 0 comments

Comments

@olivierto
Copy link

olivierto commented Jan 25, 2019

Hello there,
Just a report on a small issue.
I'm using redis client with Aclify, and after creating a role and subroles. When we delete a parent role the child roles aren't removed in redis store.
Example :

   aclify.allow(Role.SUPERADMIN, "*", "*");
   aclify.addRoleParents(Role.ADMIN, Role.SUPERADMIN);
   aclify.allow(Role.ADMIN, ["users", "organizations", "projects"], "*");
   acilify.removeRole(Role.SUPERADMIN)

If i look at the redis storage i still got keys for Role.ADMIN.
It will be great to clean subroles as well no?

Thanks for your attention.

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

1 participant