5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
31 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true ),
32 array(
"permission" =>
"write",
"cmd" =>
"view",
"lang_var" =>
"edit_content" ),
33 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings" )
46 global $ilAccess,
$lng;
47 $t_arr = explode(
'_', $a_target);
48 if ($t_arr[0] !=
'bibl' || ((
int)$t_arr[1]) <= 0) {
51 if ($ilAccess->checkAccess(
'read',
'', $t_arr[1])) {
71 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"") {
73 if ($a_user_id ==
"") {
74 $a_user_id = $ilUser->getId();
78 if (! self::_lookupOnline($a_obj_id)
79 && ! $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)
88 if (! self::_lookupOnline($a_obj_id)) {
91 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
95 switch ($a_permission) {
98 if (! self::_lookupOnline($a_obj_id)
99 && (! $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))
119 $q =
"SELECT is_online FROM il_bibl_data WHERE id = " .
120 $ilDB->quote($a_id,
"integer");
121 $bibl_set = $ilDB->query($q);
122 $bibl_rec = $ilDB->fetchAssoc($bibl_set);
124 return $bibl_rec[
"is_online"];