From f796a5f8f5b30b0d18093ecacb1f8da945351f47 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Thu, 15 Aug 2024 12:58:36 +0200 Subject: [PATCH] BUGFIX: Sort roles by label instead of internal name --- .../Controller/Module/Administration/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php b/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php index c91ceee1e55..4ce6f5e5c9e 100644 --- a/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php +++ b/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php @@ -553,7 +553,7 @@ protected function getAllowedRoles(): array $roles = $this->userService->currentUserIsAdministrator() ? $this->policyService->getRoles() : $currentUserRoles; usort($roles, static function (Role $a, Role $b) { - return strcmp($a->getName(), $b->getName()); + return strcmp($a->getLabel(), $b->getLabel()); }); return $roles;