| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function getAccessibleSubQuery(?\Ecodev\Felix\Model\User $user): string |
||
| 27 | { |
||
| 28 | if ($user && in_array($user->getRole(), [User::ROLE_FACILITATOR, User::ROLE_ADMINISTRATOR], true)) { |
||
| 29 | return $this->getAllIdsQuery(); |
||
| 30 | } |
||
| 31 | |||
| 32 | return 'SELECT id FROM facilitator_document WHERE facilitator_document.is_active'; |
||
| 33 | } |
||
| 35 |