24 include_once(
"./classes/class.ilObjectAccess.php");
48 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
50 global $ilUser,
$lng, $rbacsystem, $ilAccess, $ilias;
54 $a_user_id = $ilUser->getId();
60 include_once
'./Modules/ILinc/classes/class.ilObjiLincCourse.php';
64 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_member"));
68 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_not_member"));
73 include_once
'./Modules/ILinc/classes/class.ilObjiLincCourse.php';
82 switch ($a_permission)
85 include_once
'./Modules/ILinc/classes/class.ilObjiLincCourse.php';
93 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
96 if (!$ilias->getSetting(
"ilinc_active"))
98 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"ilinc_server_not_active"));
101 if(!$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id) and !$activated)
127 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"view_rooms",
129 array(
"permission" =>
"join",
"cmd" =>
"join",
"lang_var" =>
"join"),
130 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit")