Parcourir la source

Allow admins to switch users

Jordi Boggiano il y a 12 ans
Parent
commit
cf9c5ccb0b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app/config/security.yml

+ 3 - 1
app/config/security.yml

@@ -26,6 +26,8 @@ security:
                 lifetime: 31104000 # 1y
             logout:       true
             anonymous:    true
+            switch_user:
+                provider: packagist
 
     access_control:
         # The WDT has to be allowed to anonymous users to avoid requiring the login with the AJAX request
@@ -50,4 +52,4 @@ security:
         ROLE_EDIT_PACKAGES: ~
 
         ROLE_ADMIN:       [ ROLE_USER, ROLE_UPDATE_PACKAGES, ROLE_EDIT_PACKAGES, ROLE_DELETE_PACKAGES ]
-        ROLE_SUPERADMIN:  [ ROLE_ADMIN ]
+        ROLE_SUPERADMIN:  [ ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH ]