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" =>
"edit_content",
"cmd" =>
"edit",
"lang_var" =>
"edit_content"),
86 array(
"permission" =>
"write",
"cmd" =>
"properties",
"lang_var" =>
"settings")
103 $q =
"SELECT * FROM glossary WHERE id = ".
104 $ilDB->quote($a_id,
"integer");
106 $lm_rec = $ilDB->fetchAssoc(
$lm_set);
118 $t_arr = explode(
"_", $a_target);
120 if (($t_arr[0] !=
"glo" && $t_arr[0] !=
"git") || ((
int) $t_arr[1]) <= 0)
125 if ($t_arr[0] ==
"glo")
127 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
128 $ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
134 if ($t_arr[0] ==
"git")
138 $ref_ids = array($t_arr[2]);
143 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
151 if ($ilAccess->checkAccess(
"read",
"", $ref_id))