X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/8ca7256d7db44ec347b2324d2fabc928a99b3d5e..HEAD:/Controller/UserController.php?ds=sidebyside diff --git a/Controller/UserController.php b/Controller/UserController.php index 672f933..22ce0f8 100644 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -155,7 +155,7 @@ class UserController extends AbstractController { //Set civility default 'civility_default' => $this->doctrine->getRepository($this->config['class']['civility'])->findOneByTitle($this->config['default']['civility']), //Disable mail - 'mail' => $this->checker->isGranted('ROLE_ADMIN'), + 'mail' => $this->checker->isGranted('ROLE_'.strtoupper($this->config['default']['admin'])), //Disable password 'password' => false, //Set method