5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
33 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"enter",
"default" =>
true);
34 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"settings-general",
"lang_var" =>
"settings");
57 $t_arr = explode(
"_", $a_target);
59 if ($t_arr[0] !=
"chtr" || ((
int) $t_arr[1]) <= 0)
64 if ($rbacsystem->checkAccess(
"visible", $t_arr[1]))
74 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
78 if (self::$chat_enabled === null) {
80 self::$chat_enabled = (boolean) $chatSetting->get(
'chat_enabled');
85 $a_user_id = $ilUser->getId();
88 if ($rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)) {