aclify
aclify copied to clipboard
remove role won't remove child roles
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.