diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-10-04 16:28:23 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-10-08 16:33:17 -0700 |
commit | 026b7b8b15a0b5c40279d39569ef2432f4343f65 (patch) | |
tree | 699d88c1ea1ec6263cd1c0dc228f0114b3238b27 /apps/provisioning_api/lib/Controller/UsersController.php | |
parent | ea5e27dcd89820c9939598d53628f9d0f9988ceb (diff) | |
download | nextcloud-server-026b7b8b15a0b5c40279d39569ef2432f4343f65.tar.gz nextcloud-server-026b7b8b15a0b5c40279d39569ef2432f4343f65.zip |
fix: Return correct list of managers for a user
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/provisioning_api/lib/Controller/UsersController.php')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 5be0b6b1464..273e63c742d 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -31,6 +31,7 @@ use OCP\AppFramework\OCS\OCSForbiddenException; use OCP\AppFramework\OCS\OCSNotFoundException; use OCP\AppFramework\OCSController; use OCP\EventDispatcher\IEventDispatcher; +use OCP\Group\ISubAdmin; use OCP\HintException; use OCP\IConfig; use OCP\IGroup; @@ -63,6 +64,7 @@ class UsersController extends AUserData { IGroupManager $groupManager, IUserSession $userSession, IAccountManager $accountManager, + ISubAdmin $subAdminManager, IFactory $l10nFactory, private IURLGenerator $urlGenerator, private LoggerInterface $logger, @@ -81,6 +83,7 @@ class UsersController extends AUserData { $groupManager, $userSession, $accountManager, + $subAdminManager, $l10nFactory ); @@ -946,7 +949,7 @@ class UsersController extends AUserData { $permittedFields[] = IAccountManager::PROPERTY_PROFILE_ENABLED; $permittedFields[] = IAccountManager::PROPERTY_BIRTHDATE; $permittedFields[] = IAccountManager::PROPERTY_PRONOUNS; - + $permittedFields[] = IAccountManager::PROPERTY_PHONE . self::SCOPE_SUFFIX; $permittedFields[] = IAccountManager::PROPERTY_ADDRESS . self::SCOPE_SUFFIX; $permittedFields[] = IAccountManager::PROPERTY_WEBSITE . self::SCOPE_SUFFIX; |