HOTFIX: error occurred when slicing that would reorder the roles and there was...
HOTFIX: error occurred when slicing that would reorder the roles and there was an assumption that the last role is the admin role, so it incorrectly added an extra role to the sliced roles list instead of the admin role. This is fixed by iterating through the CA rules and adding a set of admin roles to the sliced RBAC instance. NOTE: the old code assumed that there could be only 1 admin role, this code allows for multiple admin roles (this might not be needed and if it isn't then the code can be optimized to search for the first CA with a Admin Role and then stop searching and adding every role to a set)
Showing with 18 additions and 12 deletions