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