5 require_once
'Services/Object/classes/class.ilObjectAccess.php';
6 require_once
'Services/WebAccessChecker/interfaces/interface.ilWACCheckingClass.php';
34 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"enter",
"default" =>
true);
35 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"settings-general",
"lang_var" =>
"settings");
58 $t_arr = explode(
"_", $a_target);
60 if ($t_arr[0] !=
"chtr" || ((
int) $t_arr[1]) <= 0)
65 if ($rbacsystem->checkAccess(
"read", $t_arr[1]))
75 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
79 if (self::$chat_enabled === null) {
81 self::$chat_enabled = (boolean) $chatSetting->get(
'chat_enabled');
86 $a_user_id = $ilUser->getId();
89 if ($rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {
92 return self::$chat_enabled;
100 if(preg_match(
"/chatroom\\/smilies\\//ui", $ilWACPath->
getPath()))
_checkGoto($a_target)
check whether goto script will succeed
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
Access class for chatroom objects.
canBeDelivered(ilWACPath $ilWACPath)
bool
Class ilWACCheckingClass.
_getCommands()
This method returns an array of all possible commands/permission combinations.