4 require_once
'Services/Object/classes/class.ilObjectAccess.php';
5 require_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');
82 $a_user_id = $ilUser->getId();
85 if($rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))
90 return self::$chat_enabled;
98 if(preg_match(
"/chatroom\\/smilies\\//ui", $ilWACPath->
getPath()))
static _checkGoto($a_target)
check whether goto script will succeed
Access class for chatroom objects.
canBeDelivered(ilWACPath $ilWACPath)
bool
Class ilWACCheckingClass.
Create styles array
The data for the language used.
_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...