35 $this->
user = $DIC->user();
36 $this->rbacsystem = $DIC->rbac()->system();
55 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true);
56 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"render",
"lang_var" =>
"edit_content");
57 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings");
69 $ilAccess = $DIC->access();
71 $t_arr = explode(
"_", $a_target);
73 if ($t_arr[0] !=
"book" || ((
int) $t_arr[1]) <= 0) {
77 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
78 $ilAccess->checkAccess(
"visible",
"", $t_arr[1])) {
84 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
89 if ($a_user_id ==
"") {
101 if (($a_permission ==
"visible" || $a_permission ==
"read") && !
$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {
103 if ($pool->isOffline()) {
120 $ilDB = $DIC->database();
122 $q =
"SELECT booking_pool_id, pool_offline FROM booking_settings WHERE " .
123 $ilDB->in(
"booking_pool_id", $a_ids,
false,
"integer");
127 $status[$r[
"booking_pool_id"]] = !$r[
"pool_offline"];
static _checkGoto($a_target)
check whether goto script will succeed
canBeDelivered(ilWACPath $ilWACPath)
static _lookupOnlineStatus($a_ids)
Check wether booking pool is online (legacy version)
static _getCommands()
get commands
Class ilWACCheckingClass.
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
__construct()
Constructor.
Class ilObjBookingPoolAccess.