Merge pull request #2524 from nextcloud/bugfix/2522

Only try to extract first part of the explode result
This commit is contained in:
Julius Härtl
2020-11-12 20:46:19 +01:00
committed by GitHub

View File

@@ -65,7 +65,7 @@ class ConfigService {
public function get($key) { public function get($key) {
$result = null; $result = null;
[$scope, $id] = explode(':', $key, 2); [$scope] = explode(':', $key, 2);
switch ($scope) { switch ($scope) {
case 'groupLimit': case 'groupLimit':
if (!$this->groupManager->isAdmin($this->userId)) { if (!$this->groupManager->isAdmin($this->userId)) {