| @@ 248-252 (lines=5) @@ | ||
| 245 | if ($config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 246 | $groupsList = $config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 247 | $excludedGroups = json_decode($groupsList); |
|
| 248 | if (is_null($excludedGroups)) { |
|
| 249 | $excludedGroups = explode(',', $groupsList); |
|
| 250 | $newValue = json_encode($excludedGroups); |
|
| 251 | $config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 252 | } |
|
| 253 | $usersGroups = $groupManager->getUserGroupIds($user); |
|
| 254 | if (!empty($usersGroups)) { |
|
| 255 | $remainingGroups = array_diff($usersGroups, $excludedGroups); |
|
| @@ 1168-1172 (lines=5) @@ | ||
| 1165 | if ($this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes') { |
|
| 1166 | $groupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); |
|
| 1167 | $excludedGroups = json_decode($groupsList); |
|
| 1168 | if (is_null($excludedGroups)) { |
|
| 1169 | $excludedGroups = explode(',', $groupsList); |
|
| 1170 | $newValue = json_encode($excludedGroups); |
|
| 1171 | $this->config->setAppValue('core', 'shareapi_exclude_groups_list', $newValue); |
|
| 1172 | } |
|
| 1173 | $user = $this->userManager->get($userId); |
|
| 1174 | $usersGroups = $this->groupManager->getUserGroupIds($user); |
|
| 1175 | if (!empty($usersGroups)) { |
|