1 <?php declare(strict_types=1);
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);
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.
ui(ilLanguage $lng)
ilTermsOfServiceCriterionTypeGUI
evaluate(ilObjUser $user, ilTermsOfServiceCriterionConfig $config)
bool
getId()
get object id public
Class ilTermsOfServiceUserHasGlobalRoleCriterionGUI.
__construct(ilRbacReview $rbacReview, ilObjectDataCache $objectCache)
ilTermsOfServiceUserHasGlobalRoleCriterion constructor.
class ilRbacReview Contains Review functions of core Rbac.