summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-20 13:34:41 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-21 11:41:25 +0200
commit02af4269f27d4d7b4a3a053e23a614738293be2b (patch)
treef8fd2684b6a26c5c61acd688894950aead824aa2 /settings
parentc515628ebe23d78170c699a63d9a2ca1100e5412 (diff)
downloadnextcloud-server-02af4269f27d4d7b4a3a053e23a614738293be2b.tar.gz
nextcloud-server-02af4269f27d4d7b4a3a053e23a614738293be2b.zip
Fix unit test
Now that OC_SubAdmin is just a wrapper around OC\SubAdmin some unit tests had to be fixed because they expected different behaviour. Eventually they should move to properly mocked instances of OC\SubAdmin of course
Diffstat (limited to 'settings')
-rw-r--r--settings/controller/userscontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/controller/userscontroller.php b/settings/controller/userscontroller.php
index d9b6ba7f721..ddabd308a50 100644
--- a/settings/controller/userscontroller.php
+++ b/settings/controller/userscontroller.php
@@ -167,7 +167,7 @@ class UsersController extends Controller {
'name' => $user->getUID(),
'displayname' => $user->getDisplayName(),
'groups' => (empty($userGroups)) ? $this->groupManager->getUserGroupIds($user) : $userGroups,
- 'subadmin' => \OC_SubAdmin::getSubAdminsGroups($user->getUID()),
+ 'subadmin' => $this->subAdminFactory->getSubAdminsOfGroups($user->getUID()),
'quota' => $this->config->getUserValue($user->getUID(), 'files', 'quota', 'default'),
'storageLocation' => $user->getHome(),
'lastLogin' => $user->getLastLogin() * 1000,