46 "permission" =>
"read",
51 [
"permission" =>
"write",
"cmd" =>
"view",
"lang_var" =>
"edit_content"],
52 [
"permission" =>
"write",
"cmd" =>
"settings",
"lang_var" =>
"settings"],
61 $ilAccess =
$DIC[
'ilAccess'];
62 $t_arr = explode(
'_', $target);
63 if ($t_arr[0] !==
'bibl' || ((
int) $t_arr[1]) <= 0) {
66 return (
bool) $ilAccess->checkAccess(
'read',
'', $t_arr[1]);
78 $ilUser =
$DIC[
'ilUser'];
80 $rbacsystem =
$DIC[
'rbacsystem'];
81 $ilAccess =
$DIC[
'ilAccess'];
87 $entry_id =
$DIC->http()->wrapper()->query()->retrieve(
89 $DIC->refinery()->kindlyTo()->int()
91 if (!$this->checkEntryIdMatch($obj_id, $entry_id)) {
98 if (!self::_lookupOnline($obj_id)
108 if (!self::_lookupOnline($obj_id)) {
115 switch ($permission) {
118 if (!self::_lookupOnline($obj_id)
132 private function checkEntryIdMatch(
int $obj_id,
int $entry_id): bool
137 $ilBiblEntry = ilBiblEntry::find($entry_id);
138 if (is_null($ilBiblEntry)) {
142 return ($ilBiblEntry->getDataId() === $obj_id);
152 return $bibl_obj->getObjectProperties()->getPropertyIsOnline()->getIsOnline();
const IL_NO_OBJECT_ACCESS
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _checkGoto(string $target)
check whether goto script will succeed
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcc...
static _lookupOnline(int $a_id)
Check wether bibliographic is online or not.
static _getCommands()
get commands
Class ilObjBibliographic.