| @@ 319-323 (lines=5) @@ | ||
| 316 | if ($config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 317 | $groupsList = $config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 318 | $excludedGroups = json_decode($groupsList); |
|
| 319 | if (is_null($excludedGroups)) { |
|
| 320 | $excludedGroups = explode(',', $groupsList); |
|
| 321 | $newValue = json_encode($excludedGroups); |
|
| 322 | $config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 323 | } |
|
| 324 | $usersGroups = $groupManager->getUserGroupIds($user); |
|
| 325 | if (!empty($usersGroups)) { |
|
| 326 | $remainingGroups = array_diff($usersGroups, $excludedGroups); |
|
| @@ 1514-1518 (lines=5) @@ | ||
| 1511 | if ($this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 1512 | $groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 1513 | $excludedGroups = json_decode($groupsList); |
|
| 1514 | if (is_null($excludedGroups)) { |
|
| 1515 | $excludedGroups = explode(',', $groupsList); |
|
| 1516 | $newValue = json_encode($excludedGroups); |
|
| 1517 | $this->config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 1518 | } |
|
| 1519 | $user = $this->userManager->get($userId); |
|
| 1520 | $usersGroups = $this->groupManager->getUserGroupIds($user); |
|
| 1521 | if (!empty($usersGroups)) { |
|