From 77f7da99215aa0625c0091d97e288fecfaff07b0 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Fri, 10 Feb 2023 21:52:49 +0100 Subject: Always set displayname and display-name for user data Signed-off-by: jld3103 --- apps/provisioning_api/lib/Controller/UsersController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/provisioning_api/lib/Controller/UsersController.php') diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 97d66acd2e0..f5bbf4899a4 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -24,6 +24,7 @@ declare(strict_types=1); * @author Thomas Müller * @author Tom Needham * @author Vincent Petry + * @author Kate Döen * * @license AGPL-3.0 * @@ -546,10 +547,6 @@ class UsersController extends AUserData { $user = $this->userSession->getUser(); if ($user) { $data = $this->getUserData($user->getUID(), true); - // rename "displayname" to "display-name" only for this call to keep - // the API stable. - $data['display-name'] = $data['displayname']; - unset($data['displayname']); return new DataResponse($data); } -- cgit v1.2.3