| @@ 336-340 (lines=5) @@ | ||
| 333 | if ($config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 334 | $groupsList = $config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 335 | $excludedGroups = json_decode($groupsList); |
|
| 336 | if (is_null($excludedGroups)) { |
|
| 337 | $excludedGroups = explode(',', $groupsList); |
|
| 338 | $newValue = json_encode($excludedGroups); |
|
| 339 | $config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 340 | } |
|
| 341 | $usersGroups = $groupManager->getUserGroupIds($user); |
|
| 342 | if (!empty($usersGroups)) { |
|
| 343 | $remainingGroups = array_diff($usersGroups, $excludedGroups); |
|
| @@ 1557-1561 (lines=5) @@ | ||
| 1554 | if ($this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 1555 | $groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 1556 | $excludedGroups = json_decode($groupsList); |
|
| 1557 | if (is_null($excludedGroups)) { |
|
| 1558 | $excludedGroups = explode(',', $groupsList); |
|
| 1559 | $newValue = json_encode($excludedGroups); |
|
| 1560 | $this->config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 1561 | } |
|
| 1562 | $user = $this->userManager->get($userId); |
|
| 1563 | $usersGroups = $this->groupManager->getUserGroupIds($user); |
|
| 1564 | if (!empty($usersGroups)) { |
|