ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
AccessBridge.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Chatroom;
22 
23 use ilRbacSystem;
24 
26 {
28 
29  public function __construct(ilRbacSystem $rbac)
30  {
31  $this->rbac = $rbac;
32  }
33 
34  public function checkAccess(
35  string $a_permission,
36  string $a_cmd,
37  int $a_ref_id,
38  string $a_type = "",
39  ?int $a_obj_id = null,
40  ?int $a_tree_id = null
41  ): bool {
42  return $this->rbac->checkAccess($a_permission, $a_ref_id);
43  }
44 }
__construct(ilRbacSystem $rbac)
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)