pub fn role_has_privilege(
security: &SequenceSecurity,
subject: &str,
check: PrivilegeCheck,
roles: &BTreeMap<String, RoleDefinition>,
memberships: &BTreeMap<RoleMembershipKey, RoleMembership>,
) -> boolpub fn role_has_privilege(
security: &SequenceSecurity,
subject: &str,
check: PrivilegeCheck,
roles: &BTreeMap<String, RoleDefinition>,
memberships: &BTreeMap<RoleMembershipKey, RoleMembership>,
) -> bool