5 include_once(
"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" =>
"edit");
35 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"versions",
"lang_var" =>
"versions");
53 $t_arr = explode(
"_", $a_target);
55 if ($t_arr[0] !=
"chtr" || ((
int) $t_arr[1]) <= 0)
60 if ($ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
70 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
72 global $ilUser, $ilAccess, $rbacsystem;
74 if (self::$chat_enabled === null) {
76 self::$chat_enabled = (boolean) $chatSetting->get(
'chat_enabled');
81 $a_user_id = $ilUser->getId();
84 if ($rbacsystem->checkAccess(
'write', $a_ref_id)) {