From: Raphaƫl Gertz Date: Wed, 14 Oct 2020 02:02:23 +0000 (+0200) Subject: Rename ROLE_USER to User X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/227c682272e6fc61718524a0775e0912eb95c055?hp=ee389cd4c92c394753f98d1bfd3ccee2817b541d Rename ROLE_USER to User Enable users without group to fallback to this translated group title --- 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