5 include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
6 require_once(
'./Modules/Bibliographic/classes/class.ilObjBibliographicGUI.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" )
48 $ilAccess = $DIC[
'ilAccess'];
50 $t_arr = explode(
'_', $a_target);
51 if ($t_arr[0] !=
'bibl' || ((
int)$t_arr[1]) <= 0) {
54 if ($ilAccess->checkAccess(
'read',
'', $t_arr[1])) {
74 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"") {
78 $rbacsystem = $DIC[
'rbacsystem'];
79 $ilAccess = $DIC[
'ilAccess'];
80 if ($a_user_id ==
"") {
85 if (!self::checkEntryIdMatch($a_obj_id,
$_GET[ilObjBibliographicGUI::P_ENTRY_ID])) {
92 if (! self::_lookupOnline($a_obj_id)
93 && ! $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)
102 if (! self::_lookupOnline($a_obj_id)) {
105 $ilAccess->addInfoItem(IL_STATUS_MESSAGE,
$lng->txt(
"online"));
109 switch ($a_permission) {
112 if (! self::_lookupOnline($a_obj_id)
113 && (! $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))
133 return ilBibliographicEntry::exists($entry_id, $obj_id);
144 $ilDB = $DIC[
'ilDB'];
145 $q =
"SELECT is_online FROM il_bibl_data WHERE id = " .
146 $ilDB->quote($a_id,
"integer");
147 $bibl_set =
$ilDB->query($q);
148 $bibl_rec =
$ilDB->fetchAssoc($bibl_set);
150 return $bibl_rec[
"is_online"];
const IL_NO_OBJECT_ACCESS
static checkEntryIdMatch($obj_id, $entry_id)
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcce...
Class ilObjBibliographicAccess.
static _lookupOnline($a_id)
Check wether bibliographic is online or not.
static _getCommands()
get commands
Create styles array
The data for the language used.
static _checkGoto($a_target)