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