Conditions | 5 |
Paths | 7 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
80 | public function check(ResourceAI $identity): bool |
||
81 | { |
||
82 | foreach ($this->disallowed as $permission) { |
||
83 | if ($permission->check($identity)) { |
||
84 | return false; |
||
85 | } |
||
86 | } |
||
87 | |||
88 | foreach ($this->allowed as $permission) { |
||
89 | if ($permission->check($identity)) { |
||
90 | return true; |
||
91 | } |
||
92 | } |
||
93 | |||
94 | return false; |
||
95 | } |
||
97 |