I am currently using rbac service for the below use case:
ADMIN -> USER -> VIEWER
I understand that the current inheritance supports 1 level only. If I define VIEWER permission, then ADMIN might not be able to use it. Therefore, I am currently adding a helper function that:
allows list of list of permissions input (string[][])
loop through each of the permission list to check
given at least 1 permission list returns true, then the user is authorized
I am currently using rbac service for the below use case: ADMIN -> USER -> VIEWER
I understand that the current inheritance supports 1 level only. If I define VIEWER permission, then ADMIN might not be able to use it. Therefore, I am currently adding a helper function that:
Would like to know if it makes sense to you all. If then, I may open a PR for this feature.