ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 {
27  public function __construct(private readonly ilRbacSystem $rbac)
28  {
29  }
30 
31  public function checkAccess(
32  string $a_permission,
33  string $a_cmd,
34  int $a_ref_id,
35  string $a_type = "",
36  ?int $a_obj_id = null,
37  ?int $a_tree_id = null
38  ): bool {
39  return $this->rbac->checkAccess($a_permission, $a_ref_id);
40  }
41 }
__construct(private readonly ilRbacSystem $rbac)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)