34 $this->
user = $DIC->user();
35 $this->
lng = $DIC->language();
36 $this->rbacsystem = $DIC->rbac()->system();
37 $this->
access = $DIC->access();
44 $DIC->language()->loadLanguageModule(
"itgr");
46 array(
"permission" =>
"read",
"cmd" =>
"gotoParent",
"lang_var" =>
"",
"default" =>
true),
47 array(
"permission" =>
"write",
"cmd" =>
"listMaterials",
"lang_var" =>
"itgr_assign_materials",
"default" =>
false),
48 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings",
"default" =>
false)
54 public function _checkAccess(
string $cmd,
string $permission,
int $ref_id,
int $obj_id, ?
int $user_id = null): bool
63 $ilAccess = $DIC->access();
65 $t_arr = explode(
"_", $target);
67 if ($t_arr[0] !=
"itgr" || ((
int) $t_arr[1]) <= 0) {
71 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
static _checkGoto(string $target)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)