diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-09 19:55:09 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-12 20:58:41 +0200 |
commit | da38f4a49763359d63f33ce958a12691a23eaa8f (patch) | |
tree | 784d9ea881a9bbd9cdaef0f2146ee2b0524f48d5 /apps/provisioning_api | |
parent | 73ba8d4e15bb8eba8eebcdabbe892912bf34e930 (diff) | |
download | nextcloud-server-da38f4a49763359d63f33ce958a12691a23eaa8f.tar.gz nextcloud-server-da38f4a49763359d63f33ce958a12691a23eaa8f.zip |
Make the DELETION of groups match greedy on the groupID
fixes #6032
Now since the match is greedy it will also eat the /
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r-- | apps/provisioning_api/appinfo/routes.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php index 81b3db2c1be..49861759db6 100644 --- a/apps/provisioning_api/appinfo/routes.php +++ b/apps/provisioning_api/appinfo/routes.php @@ -38,7 +38,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 |