summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-06-12 22:17:25 +0200
committerGitHub <noreply@github.com>2018-06-12 22:17:25 +0200
commit6945e1fae61f4aa7526da9ea4f27819f4e9f94b2 (patch)
treeee7da2124c45667b0176f0fac12e9da91605de04
parent59a27ceb13b1b6d0e2ba75f921e16141a7c28623 (diff)
parentd269258ac9f86ba46ec32da8d4e514d4fffbb745 (diff)
downloadnextcloud-server-6945e1fae61f4aa7526da9ea4f27819f4e9f94b2.tar.gz
nextcloud-server-6945e1fae61f4aa7526da9ea4f27819f4e9f94b2.zip
Merge pull request #9841 from nextcloud/backport/9814/stable13
[stable13] Make the DELETION of groups match greedy on the groupID
-rw-r--r--apps/provisioning_api/appinfo/routes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php
index c4932ebb28b..3c51e664698 100644
--- a/apps/provisioning_api/appinfo/routes.php
+++ b/apps/provisioning_api/appinfo/routes.php
@@ -36,7 +36,7 @@ return [
['root' => '/cloud', 'name' => 'Groups#getGroups', 'url' => '/groups', 'verb' => 'GET'],
['root' => '/cloud', 'name' => 'Groups#getGroup', 'url' => '/groups/{groupId}', 'verb' => 'GET'],
['root' => '/cloud', 'name' => 'Groups#addGroup', 'url' => '/groups', 'verb' => 'POST'],
- ['root' => '/cloud', 'name' => 'Groups#deleteGroup', 'url' => '/groups/{groupId}', 'verb' => 'DELETE'],
+ ['root' => '/cloud', 'name' => 'Groups#deleteGroup', 'url' => '/groups/{groupId}', 'verb' => 'DELETE', 'requirements' => ['groupId' => '.+']],
['root' => '/cloud', 'name' => 'Groups#getSubAdminsOfGroup', 'url' => '/groups/{groupId}/subadmins', 'verb' => 'GET'],
// Users