24 include_once(
"classes/class.ilObjectAccess.php");
49 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();
63 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
71 switch ($a_permission)
75 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
103 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
105 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit"),
122 $q =
"SELECT * FROM sahs_lm WHERE id = ".$ilDB->quote($a_id);
123 $set = $ilDB->query($q);
136 $t_arr = explode(
"_", $a_target);
138 if ($t_arr[0] !=
"sahs" || ((
int) $t_arr[1]) <= 0)
143 if ($ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
159 $lm_dir = $lm_data_dir.DIRECTORY_SEPARATOR.
"lm_".$a_id;
177 $q =
"SELECT obj_id ".
179 "WHERE type = 'sahs' ".
180 "AND owner = ".$ilDB->quote($user_id);
181 $us_set = $ilDB->query($q);
189 include_once(
"Modules/File/classes/class.ilObjFileAccess.php");
190 return ($as_string) ?