Ajout role apprenti
This commit is contained in:
parent
6f208133e3
commit
022156c06a
|
@ -11,6 +11,7 @@ security:
|
||||||
property: email
|
property: email
|
||||||
role_hierarchy:
|
role_hierarchy:
|
||||||
ROLE_INSTRUCTOR: ROLE_USER
|
ROLE_INSTRUCTOR: ROLE_USER
|
||||||
|
ROLE_APPRENTI: ROLE_USER
|
||||||
firewalls:
|
firewalls:
|
||||||
dev:
|
dev:
|
||||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||||
|
|
|
@ -85,6 +85,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
|
||||||
// guarantee every user at least has ROLE_USER
|
// guarantee every user at least has ROLE_USER
|
||||||
$roles[] = 'ROLE_USER';
|
$roles[] = 'ROLE_USER';
|
||||||
$roles[] = 'ROLE_INSTRUCTOR';
|
$roles[] = 'ROLE_INSTRUCTOR';
|
||||||
|
$roles[] = 'ROLE_APPRENTI';
|
||||||
|
|
||||||
return array_unique($roles);
|
return array_unique($roles);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue