Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 0 |
1 | <?php |
||
10 | class FileRepository extends AbstractRepository implements LimitedAccessSubQueryInterface |
||
11 | { |
||
12 | /** |
||
13 | * Returns pure SQL to get ID of all objects that are accessible to given user. |
||
14 | * |
||
15 | * Give access to users that have flag webTemporaryAccess or to users that have web subscription (digital/both) |
||
16 | * |
||
17 | * @param null|User $user |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | 4 | public function getAccessibleSubQuery(?User $user): string |
|
46 |