aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/users.php
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2015-01-03 13:25:48 +0000
committerTom Needham <tom@owncloud.com>2015-01-03 13:25:48 +0000
commit97d31946c3d4cfdac46f91385b3d888fde30d934 (patch)
treec6553b59f7619c718b4ad3b7a9e9ddf2436e8ef2 /apps/provisioning_api/lib/users.php
parent32d95633594547faaf841d90d970bf333a0c9282 (diff)
downloadnextcloud-server-97d31946c3d4cfdac46f91385b3d888fde30d934.tar.gz
nextcloud-server-97d31946c3d4cfdac46f91385b3d888fde30d934.zip
Ensure admin group is present before running tests
Diffstat (limited to 'apps/provisioning_api/lib/users.php')
-rw-r--r--apps/provisioning_api/lib/users.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/users.php b/apps/provisioning_api/lib/users.php
index 891264a908a..4262dff7a6c 100644
--- a/apps/provisioning_api/lib/users.php
+++ b/apps/provisioning_api/lib/users.php
@@ -70,7 +70,7 @@ class Users {
// Admin? Or SubAdmin?
if(OC_User::isAdminUser(OC_User::getUser()) || OC_SubAdmin::isUserAccessible(OC_User::getUser(), $userId)) {
// Check they exist
- if(!OC_user::userExists($userId)) {
+ if(!OC_User::userExists($userId)) {
return new OC_OCS_Result(null, \OC_API::RESPOND_NOT_FOUND, 'The requested user could not be found');
}
// Show all