Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
53 | 3 | public function isGrantedForUser(string $name, string $parent, UserInterface $user): bool |
|
54 | { |
||
55 | 3 | $feature = $this->manager->find($name, $parent); |
|
56 | |||
57 | 3 | if (!$feature instanceof FeatureEntity) { |
|
|
|||
58 | 1 | return false; |
|
59 | } |
||
60 | |||
61 | 2 | return $this->security->isGrantedForUser($feature, $user); |
|
62 | } |
||
64 |