diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-18 10:30:02 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-18 10:30:02 +0200 |
commit | 3f3f8c2f99e04586424dcbc845e0b73614b9a8bd (patch) | |
tree | 858de94992595ab3dcdf05706df443722d113a09 /apps/provisioning_api/lib/groups.php | |
parent | 6ce1abfa5c273c657cde1a52fb0fdd3ca450e2c6 (diff) | |
download | nextcloud-server-3f3f8c2f99e04586424dcbc845e0b73614b9a8bd.tar.gz nextcloud-server-3f3f8c2f99e04586424dcbc845e0b73614b9a8bd.zip |
Fix usage of deprecated private constants
Diffstat (limited to 'apps/provisioning_api/lib/groups.php')
-rw-r--r-- | apps/provisioning_api/lib/groups.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/provisioning_api/lib/groups.php b/apps/provisioning_api/lib/groups.php index 4a5a69216c4..cd156110635 100644 --- a/apps/provisioning_api/lib/groups.php +++ b/apps/provisioning_api/lib/groups.php @@ -44,14 +44,14 @@ class Groups{ public static function getGroup($parameters){ // Check the group exists if(!OC_Group::groupExists($parameters['groupid'])){ - return new OC_OCS_Result(null, \OC_API::RESPOND_NOT_FOUND, 'The requested group could not be found'); + return new OC_OCS_Result(null, \OCP\API::RESPOND_NOT_FOUND, 'The requested group could not be found'); } // Check subadmin has access to this group if(\OC_User::isAdminUser(\OC_User::getUser()) || in_array($parameters['groupid'], \OC_SubAdmin::getSubAdminsGroups(\OC_User::getUser()))){ return new OC_OCS_Result(array('users' => OC_Group::usersInGroup($parameters['groupid']))); } else { - return new OC_OCS_Result(null, \OC_API::RESPOND_UNAUTHORISED, 'User does not have access to specified group'); + return new OC_OCS_Result(null, \OCP\API::RESPOND_UNAUTHORISED, 'User does not have access to specified group'); } } |