diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-29 10:38:05 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-29 20:47:35 +0100 |
commit | 15abcff2a199f9d80baabbc39778765a2458acd2 (patch) | |
tree | c535c00106a36d2b9b4a225172da1939ee100779 /apps/provisioning_api/lib | |
parent | 754932c7569f61fddd152151fcdcae6dbce9e834 (diff) | |
download | nextcloud-server-15abcff2a199f9d80baabbc39778765a2458acd2.tar.gz nextcloud-server-15abcff2a199f9d80baabbc39778765a2458acd2.zip |
Expose subadmin to OCP
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 67fa32c6fb2..ac1cfe989fd 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -809,11 +809,8 @@ class UsersController extends AUserData { return new DataResponse(); } // Go - if ($subAdminManager->createSubAdmin($user, $group)) { - return new DataResponse(); - } else { - throw new OCSException('Unknown error occurred', 103); - } + $subAdminManager->createSubAdmin($user, $group); + return new DataResponse(); } /** @@ -845,11 +842,8 @@ class UsersController extends AUserData { } // Go - if ($subAdminManager->deleteSubAdmin($user, $group)) { - return new DataResponse(); - } else { - throw new OCSException('Unknown error occurred', 103); - } + $subAdminManager->deleteSubAdmin($user, $group); + return new DataResponse(); } /** |