Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function isAllowed( |
||
19 | array &$rules, |
||
20 | string $role, |
||
21 | string $resource, |
||
22 | string $privilege = null |
||
23 | ): bool { |
||
24 | return !$this->check( |
||
25 | PermissionTypeEnum::DENY(), |
||
1 ignored issue
–
show
|
|||
26 | $rules, |
||
27 | $role, |
||
28 | $resource, |
||
29 | $privilege |
||
30 | ) |
||
31 | && |
||
32 | $this->check( |
||
33 | PermissionTypeEnum::ALLOW(), |
||
1 ignored issue
–
show
|
|||
34 | $rules, |
||
35 | $role, |
||
36 | $resource, |
||
37 | $privilege |
||
38 | ); |
||
75 |