| @@ 265-269 (lines=5) @@ | ||
| 262 | if ($config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 263 | $groupsList = $config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 264 | $excludedGroups = json_decode($groupsList); |
|
| 265 | if (is_null($excludedGroups)) { |
|
| 266 | $excludedGroups = explode(',', $groupsList); |
|
| 267 | $newValue = json_encode($excludedGroups); |
|
| 268 | $config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 269 | } |
|
| 270 | $usersGroups = $groupManager->getUserGroupIds($user); |
|
| 271 | if (!empty($usersGroups)) { |
|
| 272 | $remainingGroups = array_diff($usersGroups, $excludedGroups); |
|
| @@ 1398-1402 (lines=5) @@ | ||
| 1395 | if ($this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 1396 | $groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 1397 | $excludedGroups = json_decode($groupsList); |
|
| 1398 | if (is_null($excludedGroups)) { |
|
| 1399 | $excludedGroups = explode(',', $groupsList); |
|
| 1400 | $newValue = json_encode($excludedGroups); |
|
| 1401 | $this->config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 1402 | } |
|
| 1403 | $user = $this->userManager->get($userId); |
|
| 1404 | $usersGroups = $this->groupManager->getUserGroupIds($user); |
|
| 1405 | if (!empty($usersGroups)) { |
|