4require_once
'Services/Object/classes/class.ilObjectAccess.php';
5require_once
'Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php';
26 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"enter",
"default" =>
true);
27 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"settings-general",
"lang_var" =>
"settings");
45 if(is_string($a_target))
47 $t_arr = explode(
"_", $a_target);
49 if(count($t_arr) < 2 || $t_arr[0] !=
"chtr" || ((
int)$t_arr[1]) <= 0)
54 if($rbacsystem->checkAccess(
"read", $t_arr[1]))
66 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
74 if(self::$chat_enabled ===
null)
77 self::$chat_enabled = (boolean)$chatSetting->get(
'chat_enabled');
85 if($rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))
98 if(preg_match(
"/chatroom\\/smilies\\//ui", $ilWACPath->
getPath()))
An exception for terminatinating execution or to throw for unit testing.
Access class for chatroom objects.
canBeDelivered(ilWACPath $ilWACPath)
bool
static _getCommands()
{get commandsthis method returns an array of all possible commands/permission combinationsexample: ...
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...
Class ilWACCheckingClass.