19 declare(strict_types=1);
43 $this->
logger = $DIC->logger()->rcrs();
45 $this->ilUser = $DIC->user();
46 $this->
lng = $DIC->language();
47 $this->rbacsystem = $DIC->rbac()->system();
55 $this->
logger->debug(
'>' . $cmd .
'< >' . $permission .
'< >' . $ref_id .
'< >' . $obj_id .
'< >' .
$user_id .
'<');
56 if (is_null($user_id)) {
57 $user_id = $this->ilUser->getId();
60 switch ($permission) {
63 $tutor = $this->rbacsystem->checkAccessOfUser($user_id,
'write', $ref_id);
68 if (!$tutor and !$active) {
74 $tutor = $this->rbacsystem->checkAccessOfUser($user_id,
'write', $ref_id);
105 array(
"permission" =>
"read",
"cmd" =>
"show",
"lang_var" =>
"info",
107 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit")
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcc...
const IL_NO_OBJECT_ACCESS
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _getCommands()
get commands
static _lookupOnline($a_obj_id)
Lookup online.
ilAccessHandler $ilAccess