summaryrefslogtreecommitdiffstats
path: root/settings/controller/groupscontroller.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-08 16:35:13 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-08 16:35:13 +0100
commitc23957811d31812cc9193eae0c83f6d7648b971b (patch)
tree114f922795e913d2a71e251f48d43b6833b7e9c2 /settings/controller/groupscontroller.php
parent5f43809ace0068cd577959e4a522292ec3a1c9bb (diff)
downloadnextcloud-server-c23957811d31812cc9193eae0c83f6d7648b971b.tar.gz
nextcloud-server-c23957811d31812cc9193eae0c83f6d7648b971b.zip
React on other statuscodes than 200
Diffstat (limited to 'settings/controller/groupscontroller.php')
-rw-r--r--settings/controller/groupscontroller.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/settings/controller/groupscontroller.php b/settings/controller/groupscontroller.php
index 8236d5507f4..82e72821c3d 100644
--- a/settings/controller/groupscontroller.php
+++ b/settings/controller/groupscontroller.php
@@ -82,10 +82,7 @@ class GroupsController extends Controller {
if($this->groupManager->groupExists($id)) {
return new DataResponse(
array(
- 'status' => 'error',
- 'data' => array(
- 'message' => (string)$this->l10n->t('Group already exists.')
- )
+ 'message' => (string)$this->l10n->t('Group already exists.')
),
Http::STATUS_CONFLICT
);
@@ -93,10 +90,7 @@ class GroupsController extends Controller {
if($this->groupManager->createGroup($id)) {
return new DataResponse(
array(
- 'status' => 'success',
- 'data' => array(
- 'groupname' => $id
- )
+ 'groupname' => $id
),
Http::STATUS_CREATED
);