5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
32 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true),
33 array(
"permission" =>
"write",
"cmd" =>
"view",
"lang_var" =>
"edit_content"),
34 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings")
45 global $ilAccess,
$lng;
46 $t_arr = explode(
"_", $a_target);
48 if ($t_arr[0] !=
"bibl" || ((
int) $t_arr[1]) <= 0)
53 if ($ilAccess->checkAccess(
"visible",
"", $t_arr[1]))
75 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
81 $a_user_id = $ilUser->getId();
87 if(!self::_lookupOnline($a_obj_id)
88 && !$rbacsystem->checkAccessOfUser($a_user_id,
'write',$a_ref_id))
97 if(!self::_lookupOnline($a_obj_id))
103 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
108 switch($a_permission)
112 if (!self::_lookupOnline($a_obj_id) &&
113 (!$rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)))
133 $q =
"SELECT is_online FROM il_bibl_data WHERE id = ".
134 $ilDB->quote($a_id,
"integer");
136 $bibl_set = $ilDB->query($q);
137 $bibl_rec = $ilDB->fetchAssoc($bibl_set);
139 return $bibl_rec[
"is_online"];