4include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
5require_once(
'./Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php');
25 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"") {
46 preg_match(
"/usr_(\\d*).*/ui", $ilWACPath->
getFileName(), $matches);
47 $usr_id = $matches[1];
50 if ($usr_id ==
$ilUser->getId()) {
56 if ($public_upload !=
'y') {
63 if ($public_profile ==
'g' and
$ilSetting->get(
'enable_global_profiles') and
$ilSetting->get(
'pub_section')) {
66 } elseif (($public_profile ==
'y' or $public_profile ==
'g') and
$ilUser->getId() != ANONYMOUS_USER_ID &&
$ilUser->getId() != 0) {
canBeDelivered(ilWACPath $ilWACPath)
_checkGoto($a_target)
check whether goto script will succeed
_getCommands()
get commands
_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...
_lookupPref($a_usr_id, $a_keyword)
Class ilWACCheckingClass.