Skip to content

Commit 9e0edce

Browse files
Merge pull request #2529 from nextcloud/backport/2524/stable29
[stable29] fix(local-controller): validate params set on team creation
2 parents 93b2791 + 174f336 commit 9e0edce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Controller/LocalController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ public function __construct(
145145
*/
146146
public function create(string $name, bool $personal = false, bool $local = false): DataResponse {
147147
try {
148+
if (!$this->configService->isGSAvailable() && $local === true) {
149+
throw new OCSException('circle configuration not supported', 400);
150+
}
148151
$this->setCurrentFederatedUser();
149152
$this->permissionService->confirmCircleCreation();
150153

0 commit comments

Comments
 (0)