ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
AccessCheckerImpl.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ilAccess;
24
26{
27 public function __construct(
28 protected ilAccess $access
29 ) {
30 }
31
32 public function canSeeSubitemsOfObject(int $ref_id): bool
33 {
34 return $this->access->checkAccess('read', '', $ref_id);
35 }
36
37 public function canAccessLinkToObject(int $ref_id): bool
38 {
39 return $this->access->checkAccess('read', '', $ref_id) ||
40 $this->access->checkAccess('join', '', $ref_id);
41 }
42}
Class ilAccessHandler Checks access for ILIAS objects.
$ref_id
Definition: ltiauth.php:66