33 $this->
user = $DIC->user();
34 $this->rbacsystem = $DIC->rbac()->system();
35 $this->
access = $DIC->access();
36 $this->
lng = $DIC->language();
42 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true);
43 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"render",
"lang_var" =>
"edit_content");
44 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings");
53 $ilAccess = $DIC->access();
55 $t_arr = explode(
"_", $target);
57 if ($t_arr[0] !==
"book" || ((
int) $t_arr[1]) <= 0) {
61 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
62 $ilAccess->checkAccess(
"visible",
"", $t_arr[1])) {
85 if (($permission ===
"visible" || $permission ===
"read") && !$rbacsystem->
checkAccessOfUser(
$user_id,
'write', $ref_id)) {
86 if (self::_isOffline($obj_id)) {
103 $ilDB = $DIC->database();
105 $q =
"SELECT booking_pool_id, pool_offline FROM booking_settings WHERE " .
106 $ilDB->in(
"booking_pool_id", $a_ids,
false,
"integer");
110 $status[
$r[
"booking_pool_id"]] = !$r[
"pool_offline"];
const IL_NO_OBJECT_ACCESS
static _checkGoto(string $target)
canBeDelivered(ilWACPath $ilWACPath)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkAccessOfUser(int $a_user_id, string $a_operations, int $a_ref_id, string $a_type="")
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
_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...
static _lookupOnlineStatus(array $a_ids)
Check whether booking pool is online (legacy version)