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()) {
 
  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"];
 
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
__construct()
Constructor.
_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 _lookupOnlineStatus($a_ids)
Check wether booking pool is online (legacy version)
static _getCommands()
get commands
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilWACCheckingClass.