| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function isGranted(UserInterface $user, $attributes, OwnedByUserModelInterface $model = null): bool |
||
| 40 | { |
||
| 41 | foreach ($this->authorizations as $authorization) { |
||
| 42 | if ($authorization->isGranted($user, $attributes, $model)) { |
||
| 43 | return true; |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | return false; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |