32 return 'usr_global_role';
48 $roleId = $config[
'role_id'] ?? 0;
50 if (!is_numeric($roleId) || $roleId < 1 || is_float($roleId)) {
54 if (!$this->rbacReview->isGlobalRole($roleId)) {
58 $result = $this->rbacReview->isAssigned($user->
getId(), $roleId);
68 return new \ilTermsOfServiceUserHasGlobalRoleCriterionGUI($this, $lng, $this->rbacReview, $this->objectCache);
getTypeIdent()
Returns a unique id of the criterion type.string
Interface ilTermsOfServiceCriterionTypeGUI.
Interface ilTermsOfServiceCriterionType.
hasUniqueNature()
Returns whether or not a criterion is unique by it's nature.Example: "User Language". A user account can only have one profile language . bool
Class ilTermsOfServiceUserHasGlobalRoleCriterion.
Class ilTermsOfServiceCriterionConfig.
evaluate(\ilObjUser $user, \ilTermsOfServiceCriterionConfig $config)
bool
getId()
get object id public
__construct(\ilRbacReview $rbacReview, \ilObjectDataCache $objectCache)
ilTermsOfServiceUserHasGlobalRoleCriterion constructor.
class ilRbacReview Contains Review functions of core Rbac.