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 require_once (
'Services/WebDAV/classes/class.ilDAVActivationChecker.php');
146 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"mount_webfolder",
"lang_var" =>
"mount_webfolder",
"enable_anonymous" =>
"false");
149 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit");
161 $t_arr = explode(
"_", $a_target);
163 if ($t_arr[0] !=
"grp" || ((
int) $t_arr[1]) <= 0)
168 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
169 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))