Skip to content

remove role won't remove child roles #38

@olivierto

Description

@olivierto

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions