24 include_once(
"classes/class.ilObjectAccess.php");
50 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
52 global $ilUser,
$lng, $rbacsystem, $ilAccess;
56 $a_user_id = $ilUser->getId();
59 switch ($a_permission)
63 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
72 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
100 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
102 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit"),
119 $q =
"SELECT * FROM glossary WHERE id = ".
120 $ilDB->quote($a_id,
"integer");
121 $lm_set = $ilDB->query(
$q);
122 $lm_rec = $ilDB->fetchAssoc($lm_set);
134 $t_arr = explode(
"_", $a_target);
136 if (($t_arr[0] !=
"glo" && $t_arr[0] !=
"git") || ((
int) $t_arr[1]) <= 0)
141 if ($t_arr[0] ==
"glo")
143 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
144 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
150 if ($t_arr[0] ==
"git")
154 $ref_ids = array($t_arr[2]);
159 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
167 if ($ilAccess->checkAccess(
"read",
"", $ref_id))