19 declare(strict_types=1);
47 return $this->
access->checkAccessOfUser($a_usr_id,
"visible", $this->ref_id);
55 return $this->
access->checkAccessOfUser($a_usr_id,
"read", $this->ref_id);
63 return $this->
access->checkAccessOfUser($a_usr_id,
"write", $this->ref_id);
71 return $this->
access->checkAccessOfUser($a_usr_id,
"edit_permission", $this->ref_id);
79 return $this->
access->checkAccessOfUser($a_usr_id,
"read_comp", $this->ref_id);
87 return $this->
access->checkAccessOfUser($a_usr_id,
"manage_comp", $this->ref_id);
95 return $this->
access->checkAccessOfUser($a_usr_id,
"manage_comp_temp", $this->ref_id);
100 if ($a_usr_id == 0) {
103 if ($this->obj_type ==
"crs" || $this->obj_type ==
"grp") {
104 return $this->
access->checkAccessOfUser($a_usr_id,
"read", $this->ref_id);
106 return $this->
access->checkAccessOfUser($a_usr_id,
"read_profiles", $this->ref_id);
111 if ($a_usr_id == 0) {
114 if ($this->obj_type ==
"crs" || $this->obj_type ==
"grp") {
115 return $this->
access->checkAccessOfUser($a_usr_id,
"write", $this->ref_id);
117 return $this->
access->checkAccessOfUser($a_usr_id,
"manage_profiles", $this->ref_id);
__construct(\ilRbacSystem $access, int $ref_id, int $usr_id)
hasReadProfilesPermission(int $a_usr_id=0)
hasManageCompetencesPermission(int $a_usr_id=0)
hasManageCompetenceTemplatesPermission(int $a_usr_id=0)
hasReadTreePermission(int $a_usr_id=0)
hasVisibleTreePermission(int $a_usr_id=0)
hasReadCompetencesPermission(int $a_usr_id=0)
static _lookupType(int $id, bool $reference=false)
hasEditTreeSettingsPermission(int $a_usr_id=0)
hasManageProfilesPermission(int $a_usr_id=0)
hasEditTreePermissionsPermission(int $a_usr_id=0)