5 include_once(
"./classes/class.ilObjectAccess.php");
29 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
32 global $ilUser,
$lng, $rbacsystem, $ilAccess;
36 $a_user_id = $ilUser->getId();
43 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
46 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_member"));
50 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_not_member"));
56 include_once
'./Modules/Group/classes/class.ilGroupWaitingList.php';
62 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
72 if($a_permission ==
'leave')
74 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
81 if($a_permission ==
'join')
83 include_once
'./Modules/Group/classes/class.ilGroupWaitingList.php';
93 switch ($a_permission)
115 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
"default" =>
true);
116 $commands[] = array(
"permission" =>
"join",
"cmd" =>
"join",
"lang_var" =>
"join");
119 $commands[] = array(
'permission' =>
"join",
"cmd" =>
"leave",
"lang_var" =>
"leave_waiting_list");
122 $commands[] = array(
'permission' =>
"leave",
"cmd" =>
"leave",
"lang_var" =>
"grp_btn_unsubscribe");
124 include_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
127 include_once
'./Services/WebDAV/classes/class.ilDAVUtils.php';
130 $commands[] = array(
'permission' =>
'read',
'cmd' =>
'showPasswordInstruction',
'lang_var' =>
'mount_webfolder',
'enable_anonymous' =>
'false');
134 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"mount_webfolder",
"lang_var" =>
"mount_webfolder",
"enable_anonymous" =>
"false");
138 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit");
148 global $ilAccess,$ilUser;
151 if(substr($t_arr[2],0,5) ==
'rcode' and $ilUser->getId() != ANONYMOUS_USER_ID)
157 $t_arr = explode(
"_", $a_target);
159 if ($t_arr[0] !=
"grp" || ((
int) $t_arr[1]) <= 0)
164 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
165 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
181 $query =
"SELECT * FROM grp_settings ".
182 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ";
186 $enabled = $unlimited =
false;
189 $enabled =
$row->registration_enabled;
190 $unlimited =
$row->registration_unlimited;
191 $start =
$row->registration_start;
192 $end =
$row->registration_end;
223 global
$ilDB, $ilUser;
225 include_once(
"./Modules/Group/classes/class.ilGroupWaitingList.php");