3 declare(strict_types=1);
38 $this->
user = $DIC->user();
39 $this->
lng = $DIC->language();
40 $this->rbacsystem = $DIC->rbac()->system();
41 $this->
access = $DIC->access();
47 public function _checkAccess(
string $cmd,
string $permission,
int $ref_id,
int $obj_id, ?
int $user_id = null): bool
55 $a_user_id = $ilUser->getId();
60 $permission ===
'read' 74 [
"permission" =>
"read",
"cmd" =>
"preview",
"lang_var" =>
"show",
"default" =>
true],
75 [
"permission" =>
"write",
"cmd" =>
"render",
"lang_var" =>
"edit"]
86 $ilAccess = $DIC->access();
88 $t_arr = explode(
"_", $target);
90 if ($t_arr[0] !==
"poll" || ((
int) $t_arr[1]) <= 0) {
94 if ($ilAccess->checkAccess(
"read",
"", (
int) $t_arr[1])) {
108 preg_match(
"/\\/poll_([\\d]*)\\//uism", $ilWACPath->
getPath(),
$results);
111 if ($ilAccess->checkAccess(
'read',
'',
$ref_id)) {
static _getAllReferences(int $id)
get all reference ids for object ID
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
canBeDelivered(ilWACPath $ilWACPath)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _checkGoto(string $target)