Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class FacilitatorDocumentRepository extends AbstractRepository implements LimitedAccessSubQuery |
||
16 | { |
||
17 | /** |
||
18 | * Returns pure SQL to get ID of all objects that are accessible to given user. |
||
19 | * |
||
20 | * A user can access a file if at least one of the following conditions is true: |
||
21 | * |
||
22 | * - he is facilitator or administrator |
||
23 | * |
||
24 | * @param null|User $user |
||
25 | */ |
||
26 | public function getAccessibleSubQuery(?\Ecodev\Felix\Model\User $user): string |
||
35 |