6include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
7require_once(
'./Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php');
36 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true);
37 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"render",
"lang_var" =>
"edit_content");
38 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings");
50 $t_arr = explode(
"_", $a_target);
52 if ($t_arr[0] !=
"book" || ((
int) $t_arr[1]) <= 0)
57 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]))
64 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
81 if(($a_permission ==
"visible" || $a_permission ==
"read") && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
83 include_once
"Modules/BookingManager/classes/class.ilObjBookingPool.php";
85 if($pool->isOffline())
An exception for terminatinating execution or to throw for unit testing.
Class ilObjBookingPoolAccess.
canBeDelivered(ilWACPath $ilWACPath)
static _checkGoto($a_target)
check whether goto script will succeed
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcce...
static _getCommands()
get commands
Class ilWACCheckingClass.