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/Course/classes/class.ilCourseParticipants.php';
77 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
85 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
103 switch ($a_permission)
106 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
109 $tutor = $rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id);
115 if(!$tutor and !$active)
122 $tutor = $rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id);
127 include_once
'Modules/Course/classes/class.ilObjCourse.php';
136 include_once(
'Modules/Course/classes/class.ilCourseParticipants.php');
171 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"",
"lang_var" =>
"view",
"default" =>
true);
172 $commands[] = array(
"permission" =>
"join",
"cmd" =>
"join",
"lang_var" =>
"join");
174 require_once
'Services/WebDAV/classes/class.ilDAVServer.php';
177 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"mount_webfolder",
"lang_var" =>
"mount_webfolder",
"enable_anonymous" =>
"false");
180 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit");
191 $t_arr = explode(
"_", $a_target);
193 if ($t_arr[0] !=
"crs" || ((
int) $t_arr[1]) <= 0)
198 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
199 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
215 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
216 $query =
"SELECT subscription_limitation_type FROM crs_settings ".
217 "WHERE obj_id = ".$ilDB->quote($a_obj_id);
218 $res = $ilDB->query($query);