Will Laine
10/03/2024, 10:01 PMroles:
- USER
- MANAGER
Make it so that the principal must have roles "USER" AND "MANAGER" instead of "USER" OR "MANAGER"
ThanksDennis (Cerbos)
roles:
- USER
- MANAGER
condition:
match:
expr: ["USER", "MANAGER"].isSubset(P.roles)
If you want to do the same with derived roles, use runtime.effectiveDerivedRoles
.