X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/4f9e7ff026a604ff0cbec161b9bddb0f07c4fe99..5a98a00e7d88a4ab0e68d68abf1eee8842cb1b30:/Controller/UserController.php?ds=inline 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