24 include_once(
"./classes/class.ilObjectAccess.php");
48 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
51 global $ilUser,
$lng, $rbacsystem, $ilAccess;
55 $a_user_id = $ilUser->getId();
62 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
65 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_member"));
69 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_not_member"));
75 include_once
'./Modules/Group/classes/class.ilGroupWaitingList.php';
81 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
91 if($a_permission ==
'leave')
93 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
100 if($a_permission ==
'join')
102 include_once
'./Modules/Group/classes/class.ilGroupWaitingList.php';
112 switch ($a_permission)
134 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
"default" =>
true);
135 $commands[] = array(
"permission" =>
"join",
"cmd" =>
"join",
"lang_var" =>
"join");
138 $commands[] = array(
'permission' =>
"join",
"cmd" =>
"leave",
"lang_var" =>
"leave_waiting_list");
141 $commands[] = array(
'permission' =>
"leave",
"cmd" =>
"leave",
"lang_var" =>
"grp_btn_unsubscribe");
143 include_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
146 include_once
'./Services/WebDAV/classes/class.ilDAVUtils.php';
149 $commands[] = array(
'permission' =>
'read',
'cmd' =>
'showPasswordInstruction',
'lang_var' =>
'mount_webfolder',
'enable_anonymous' =>
'false');
153 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"mount_webfolder",
"lang_var" =>
"mount_webfolder",
"enable_anonymous" =>
"false");
157 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit");
167 global $ilAccess,$ilUser;
170 if(substr($t_arr[2],0,5) ==
'rcode' and $ilUser->getId() != ANONYMOUS_USER_ID)
176 $t_arr = explode(
"_", $a_target);
178 if ($t_arr[0] !=
"grp" || ((
int) $t_arr[1]) <= 0)
183 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
184 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
200 $query =
"SELECT * FROM grp_settings ".
201 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ";
205 $enabled = $unlimited =
false;
208 $enabled =
$row->registration_enabled;
209 $unlimited =
$row->registration_unlimited;
210 $start =
$row->registration_start;
211 $end =
$row->registration_end;