Rapsys Git
/
userbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f9e7ff
)
Replace hardcoded role by configurable key
author
Raphaël Gertz
<git@rapsys.eu>
Thu, 14 Nov 2024 06:34:37 +0000
(07:34 +0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Thu, 14 Nov 2024 06:34:37 +0000
(07:34 +0100)
Controller/UserController.php
patch
|
blob
|
history
diff --git
a/Controller/UserController.php
b/Controller/UserController.php
index 672f93392459b8b262ffe2bda85be72e50e81adb..22ce0f8052f5d9166f057379237fdd4bcdf7971a 100644
(file)
--- 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