| @@ 255-259 (lines=5) @@ | ||
| 252 | if ($config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 253 | $groupsList = $config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 254 | $excludedGroups = json_decode($groupsList); |
|
| 255 | if (is_null($excludedGroups)) { |
|
| 256 | $excludedGroups = explode(',', $groupsList); |
|
| 257 | $newValue = json_encode($excludedGroups); |
|
| 258 | $config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 259 | } |
|
| 260 | $usersGroups = $groupManager->getUserGroupIds($user); |
|
| 261 | if (!empty($usersGroups)) { |
|
| 262 | $remainingGroups = array_diff($usersGroups, $excludedGroups); |
|
| @@ 1227-1231 (lines=5) @@ | ||
| 1224 | if ($this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 1225 | $groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 1226 | $excludedGroups = json_decode($groupsList); |
|
| 1227 | if (is_null($excludedGroups)) { |
|
| 1228 | $excludedGroups = explode(',', $groupsList); |
|
| 1229 | $newValue = json_encode($excludedGroups); |
|
| 1230 | $this->config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 1231 | } |
|
| 1232 | $user = $this->userManager->get($userId); |
|
| 1233 | $usersGroups = $this->groupManager->getUserGroupIds($user); |
|
| 1234 | if (!empty($usersGroups)) { |
|