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
Add an API operation to delete a custom role, removing its Casbin p rows and definition/relationship rows (per the persistence model). The UI drives two deletion paths the contract must support (define in #469):
Delete + revoke ("Delete anyway"): delete the role and unassign all its members.
Reassign + delete ("Reassign & Delete"): first reassign all members to a chosen replacement role, then delete the original.
Superuser-only. Standard roles are not deletable (ADR 0021).
Acceptance
Deleting a custom role removes its definition, role-permission and policy rows and its assignments.
Both the revoke-all and reassign-then-delete paths implemented and tested.
Audit recorded for the deletion and the member changes.
Activity