浏览代码

Allow admins to switch users

Jordi Boggiano 12 年之前
父节点
当前提交
cf9c5ccb0b
共有 1 个文件被更改,包括 3 次插入1 次删除
  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 ]