Commit a88e733894ec792ded30363a0c269e664b9f2e55
1 parent
3112e088a7
Exists in
master
cambiado el role docente por role usuario cuando se registra por primera vez que…
… el rol docente se necesita para la planificacion docente
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/config/security.yml
| @@ -38,6 +38,6 @@ security: | @@ -38,6 +38,6 @@ security: | ||
| 38 | access_control: | 38 | access_control: |
| 39 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 39 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
| 40 | - { path: ^/register, roles: ROLE_DOCENTE } | 40 | - { path: ^/register, roles: ROLE_DOCENTE } |
| 41 | - - { path: ^/ceapp, roles: ROLE_DOCENTE } | 41 | + - { path: ^/ceapp, roles: ROLE_USUARIO } |
| 42 | - { path: ^/admin, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 42 | - { path: ^/admin, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
| 43 | - { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 43 | - { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
src/AppBundle/Controller/SecurityController.php
| @@ -54,7 +54,7 @@ class SecurityController extends Controller | @@ -54,7 +54,7 @@ class SecurityController extends Controller | ||
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | - if($this->isGranted('ROLE_DOCENTE')){ | 57 | + if($this->isGranted('ROLE_USUARIO')){ |
| 58 | return $this->redirect($this->generateUrl('solicitud_adscripcion')); | 58 | return $this->redirect($this->generateUrl('solicitud_adscripcion')); |
| 59 | } | 59 | } |
| 60 | } | 60 | } |