19declare(strict_types=1);
35 $this->rbacreview =
$DIC->rbac()->review();
36 $this->rbacsystem =
$DIC->rbac()->system();
37 $this->
user = $DIC->user();
38 $this->ref_id =
$DIC->http()->wrapper()->query()->has(
'ref_id')
39 ?
$DIC->http()->wrapper()->query()->retrieve(
'ref_id',
$DIC->refinery()->kindlyTo()->int())
52 if ($this->ref_id ===
null) {
55 return $this->rbacsystem->checkAccess($permission, $this->ref_id);
61 $this->rbacreview->getGlobalRoles(),
67 $roles[$global_role[
'rol_id']] = $global_role[
'title'];
75 return $this->global_roles
76 ?? $this->global_roles = $this->rbacreview->assignedGlobalRoles($this->
user->getId());
Base class for ILIAS Exception handling.
checkAccessAndThrowException(string $permission)
resolveUsersGlobalRoles()
hasUserPermissionTo(string $permission)
class ilRbacReview Contains Review functions of core Rbac.
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...