19 declare(strict_types=1);
32 public function _checkAccess(
string $cmd,
string $permission,
int $ref_id,
int $obj_id, ?
int $user_id = null): bool
35 $rbacsystem = $DIC[
'rbacsystem'];
38 $ilAccess = $DIC[
'ilAccess'];
40 if (is_null($user_id)) {
54 switch ($permission) {
56 return $rbacsystem->checkAccessOfUser($user_id,
'visible', $ref_id);
59 return $rbacsystem->checkAccessOfUser($user_id,
'write', $ref_id);
const IL_NO_OBJECT_ACCESS
_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...
Class ilObjWorkflowEngineAccess.