5require_once
'Services/Object/classes/class.ilObjectAccess.php';
6require_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');
89 if ($rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {
100 if(preg_match(
"/chatroom\\/smilies\\//ui", $ilWACPath->
getPath()))
Access class for chatroom objects.
_getCommands()
This method returns an array of all possible commands/permission combinations.
_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...
canBeDelivered(ilWACPath $ilWACPath)
bool
_checkGoto($a_target)
check whether goto script will succeed
Class ilWACCheckingClass.