5 require_once(
"./Services/Object/classes/class.ilObjectAccess.php");
33 array(
"permission" =>
"read",
"cmd" =>
"render",
"lang_var" =>
"show",
"default" =>
true ),
34 array(
"permission" =>
"write",
"cmd" =>
"listRecords",
"lang_var" =>
"edit_content" ),
35 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings" )
48 $t_arr = explode(
"_", $a_target);
50 if ($t_arr[0] !=
"dcl" || ((
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 =
"") {
77 if ($a_user_id ==
"") {
78 $a_user_id = $ilUser->getId();
84 && ! $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id)
97 $ilAccess->addInfoItem(IL_STATUS_MESSAGE, $lng->txt(
"online"));
101 switch ($a_permission) {
105 && (! $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id))
126 $q =
"SELECT * FROM il_dcl_data WHERE id = " . $ilDB->quote($a_id,
"integer");
127 $dcl_set = $ilDB->query($q);
128 $dcl_rec = $ilDB->fetchAssoc($dcl_set);
130 return $dcl_rec[
"is_online"];
149 if ($ilAccess->checkAccess(
"add_entry",
"", array_shift($references))) {
165 if (self::checkActionForRefId($action, $ref_id)) {
180 public static function checkActionForRefId($action,
$ref_id) {
187 return $ilAccess->checkAccess($action,
"",
$ref_id);
199 return $ilAccess->checkAccess(
"write",
"", $ref);
211 return $ilAccess->checkAccess(
"add_entry",
"", $ref);
223 return $ilAccess->checkAccess(
"read",
"", $ref);