19 declare(strict_types=1);
39 global $ilUser,
$lng, $rbacsystem, $ilAccess;
45 switch ($permission) {
48 $tutor = $rbacsystem->checkAccessOfUser(
$user_id,
'write', $ref_id);
53 if (!$tutor and !$active) {
59 $tutor = $rbacsystem->checkAccessOfUser(
$user_id,
'write', $ref_id);
89 array(
"permission" =>
"read",
"cmd" =>
"show",
"lang_var" =>
"info",
91 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit")
const IL_NO_OBJECT_ACCESS
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _getCommands()
get commands
_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...
static _lookupOnline($a_obj_id)
Lookup online.