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;
54 $a_user_id = $ilUser->getId();
61 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
64 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_member"));
68 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"info_is_not_member"));
74 include_once
'./Modules/Group/classes/class.ilGroupParticipants.php';
82 switch ($a_permission)
104 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
"default" =>
true);
108 $commands[] = array(
"permission" =>
"join",
"cmd" =>
"join",
"lang_var" =>
"join");
110 require_once
'Services/WebDAV/classes/class.ilDAVServer.php';
113 $commands[] = array(
"permission" =>
"read",
"cmd" =>
"mount_webfolder",
"lang_var" =>
"mount_webfolder",
"enable_anonymous" =>
"false");
116 $commands[] = array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit");
128 $t_arr = explode(
"_", $a_target);
130 if ($t_arr[0] !=
"grp" || ((
int) $t_arr[1]) <= 0)
135 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
136 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))