From 0e332b718ed9d319d2b51637a535440df697f172 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 10 Sep 2020 20:42:54 +0000 Subject: [PATCH] [SECURITY] Fix getRoles --- src/Entity/LocalUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/LocalUser.php b/src/Entity/LocalUser.php index ad1ebd0707..7b50833a39 100644 --- a/src/Entity/LocalUser.php +++ b/src/Entity/LocalUser.php @@ -265,7 +265,7 @@ class LocalUser extends Entity implements UserInterface */ public function getRoles() { - return UserRoles::bitmapToStrings($this->getActor()->getRoles()); + return UserRoles::toArray($this->getActor()->getRoles()); } /**