]> Raphaël G. Git Repositories - airbundle/commitdiff
Rename ROLE_USER to User
authorRaphaël Gertz <git@rapsys.eu>
Wed, 14 Oct 2020 02:02:23 +0000 (04:02 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 14 Oct 2020 02:06:07 +0000 (04:06 +0200)
Enable users without group to fallback to this translated group title

Repository/UserRepository.php

index cc51ea088d565510b1a753dfb8722afdeddabcd1..0d0ee4e45e2ff35c06e0da72be4922cf6f80219f 100644 (file)
@@ -85,7 +85,7 @@ class UserRepository extends \Doctrine\ORM\EntityRepository {
                //Process result
                foreach($res as $data) {
                        //Get translated group
                //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
                        //Get translated title
                        $title = $translator->trans($data['t_short']);
                        //Init group subarray