aclify icon indicating copy to clipboard operation
aclify copied to clipboard

remove role won't remove child roles

Open olivierto opened this issue 6 years ago • 0 comments

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.

olivierto avatar Jan 25 '19 10:01 olivierto