From e2d81a5fda1b671ff17229a17bcdb8db94b7e849 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 14 Oct 2020 04:02:23 +0200 Subject: [PATCH] Rename ROLE_USER to User Enable users without group to fallback to this translated group title --- Repository/UserRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Repository/UserRepository.php b/Repository/UserRepository.php index cc51ea0..0d0ee4e 100644 --- a/Repository/UserRepository.php +++ b/Repository/UserRepository.php @@ -85,7 +85,7 @@ class UserRepository extends \Doctrine\ORM\EntityRepository { //Process result foreach($res as $data) { //Get translated group - $group = $translator->trans($data['g_title']?:'ROLE_USER'); + $group = $translator->trans($data['g_title']?:'User'); //Get translated title $title = $translator->trans($data['t_short']); //Init group subarray -- 2.41.1