summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller/UsersController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/provisioning_api/lib/Controller/UsersController.php')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php14
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();
}
/**