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:13 +0200 |
commit | d269258ac9f86ba46ec32da8d4e514d4fffbb745 (patch) | |
tree | ee7da2124c45667b0176f0fac12e9da91605de04 /apps/provisioning_api | |
parent | 59a27ceb13b1b6d0e2ba75f921e16141a7c28623 (diff) | |
download | nextcloud-server-d269258ac9f86ba46ec32da8d4e514d4fffbb745.tar.gz nextcloud-server-d269258ac9f86ba46ec32da8d4e514d4fffbb745.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 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 |