6 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
32 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
38 $a_user_id = $ilUser->getId();
41 switch ($a_permission)
45 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
54 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
82 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
84 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit_content"),
85 array(
"permission" =>
"write",
"cmd" =>
"properties",
"lang_var" =>
"settings")
102 $q =
"SELECT * FROM glossary WHERE id = ".
103 $ilDB->quote($a_id,
"integer");
104 $lm_set = $ilDB->query($q);
105 $lm_rec = $ilDB->fetchAssoc($lm_set);
117 $t_arr = explode(
"_", $a_target);
119 if (($t_arr[0] !=
"glo" && $t_arr[0] !=
"git") || ((
int) $t_arr[1]) <= 0)
124 if ($t_arr[0] ==
"glo")
126 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
127 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
133 if ($t_arr[0] ==
"git")
137 $ref_ids = array($t_arr[2]);
142 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
150 if ($ilAccess->checkAccess(
"read",
"", $ref_id))