Browse Source

Amélioration sécurité pour admin

bastien 12 years ago
parent
commit
88849b8417
2 changed files with 2 additions and 3 deletions
  1. 2 2
      app/config/routing.yml
  2. 0 1
      src/Muzich/CoreBundle/Resources/config/security.yml

+ 2 - 2
app/config/routing.yml View File

@@ -14,8 +14,8 @@ _sonata_admin:
14 14
   
15 15
 MuzichAdminBundle:
16 16
   resource: "@MuzichAdminBundle/Resources/config/routing.yml"
17
-  prefix: /{_locale}/
18
-  defaults: { _locale: fr }
17
+#  prefix: /{_locale}/
18
+#  defaults: { _locale: fr }
19 19
   
20 20
 MuzichIndexBundle:
21 21
   resource: "@MuzichIndexBundle/Resources/config/routing.yml"

+ 0 - 1
src/Muzich/CoreBundle/Resources/config/security.yml View File

@@ -46,7 +46,6 @@ security:
46 46
       
47 47
         # PAGES ACCESSIBLES AUX ADMINISTRATEURS
48 48
         - { path: ^/admin, role: ROLE_ADMIN }
49
-        - { path: "^/(?:fr|en)/admin", roles: ROLE_ADMIN }
50 49
       
51 50
         # AUTRES
52 51
         - { path: "^/hello", roles: IS_AUTHENTICATED_ANONYMOUSLY }