function _checkGoto($a_target) { global $ilAccess; $t_arr = explode("_", $a_target); // #11021 // personal workspace context: do not force normal login if (isset($t_arr[2]) && $t_arr[2] == "wsp") { include_once "Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php"; return ilSharedResourceGUI::hasAccess($t_arr[1]); } if ($ilAccess->checkAccess("read", "", $t_arr[1])) { return true; } return false; }
/** * check whether goto script will succeed */ function _checkGoto($a_target) { global $ilAccess; $t_arr = explode("_", $a_target); if (substr($a_target, -3) == "wsp") { include_once "Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php"; return ilSharedResourceGUI::hasAccess($t_arr[1]); } if ($t_arr[0] != "blog" || (int) $t_arr[1] <= 0) { return false; } if ($ilAccess->checkAccess("visible", "", $t_arr[1])) { return true; } return false; }
/** * check whether goto script will succeed */ function _checkGoto($a_target) { $t_arr = explode("_", $a_target); include_once "Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php"; return ilSharedResourceGUI::hasAccess($t_arr[1], true); }