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" =>
"book_booking_objects");
44 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings");
53 $ilAccess =
$DIC->access();
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])) {
68 public function _checkAccess(
string $cmd,
string $permission,
int $ref_id,
int $obj_id, ?
int $user_id =
null): bool
86 if (self::_isOffline($obj_id)) {
102 foreach ($a_ids as
$id) {
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
const IL_NO_OBJECT_ACCESS
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
canBeDelivered(ilWACPath $ilWACPath)
static _lookupOnlineStatus(array $a_ids)
Check whether booking pool is online (legacy version)
static _checkGoto(string $target)
check whether goto script will succeed
_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 _getCommands()
get commands
static _isOffline(int $obj_id)
Type-specific implementation of general status, has to be overwritten if object type does not support...
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
checkAccessOfUser(int $a_user_id, string $a_operations, int $a_ref_id, string $a_type="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Combines all available interfaces which can be called via global $ilAccess.