bayesline.api.role_satisfies#
- bayesline.api.role_satisfies(held_roles: Sequence[RoleType], required_role: RoleType) bool#
Return whether the held roles satisfy
required_roleper the hierarchy.Parameters#
- held_rolesSequence[RoleType]
The roles directly assigned to a user.
- required_roleRoleType
The role being checked for.
Returns#
- bool
True if any held role fulfils
required_rolevia the hierarchy.