Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | 3 | public static function hasGroupAccess(string $groupList, string $accessList): bool |
|
30 | { |
||
31 | 3 | if (empty($accessList)) { |
|
32 | 1 | return true; |
|
33 | } |
||
34 | 2 | foreach (explode(',', $groupList) as $groupUid) { |
|
35 | 2 | if (GeneralUtility::inList($accessList, $groupUid)) { |
|
36 | 1 | return true; |
|
37 | } |
||
38 | } |
||
39 | 1 | return false; |
|
40 | } |
||
42 |