24 include_once(
"./classes/class.ilObjectAccess.php");
50 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
52 global $ilUser,
$lng, $rbacsystem, $ilAccess, $ilias;
54 $user_id = $ilUser->getId();
55 $class_id = $a_ref_id;
56 $course_ref_id = $a_obj_id;
57 $class_arr = $a_user_id;
69 switch ($a_permission)
73 if (!$class_arr[
'alwaysopen'])
79 include_once (
'./Modules/ILinc/classes/class.ilObjiLincCourse.php');
89 if(!$rbacsystem->checkAccessOfUser($user_id,
'write',$a_ref_id,
"ilca"))
115 array(
"permission" =>
"join",
"cmd" =>
"joinClassroom",
"lang_var" =>
"join",
"frame" =>
"_blank"),
116 array(
"permission" =>
"write",
"cmd" =>
"editClassroom",
"lang_var" =>
"edit"),
117 array(
"permission" =>
"delete",
"cmd" =>
"removeClassroom",
"lang_var" =>
"delete")