Permalink
Browse files

refine the safety rules

  • Loading branch information...
1 parent 9ae341b commit c00e3907537f0f8f57173716b2670034ec25bf34 sunfeng committed Jan 7, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/config/security.yml
View
@@ -47,4 +47,7 @@ security:
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
#- { path: ^/_internal/secure, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
- { path: ^/admin/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- - { path: ^/admin, roles: ROLE_ADMIN }
+ - { path: ^/admin/user/*, roles: ROLE_ADMIN }
+ - { path: ^/admin/category/*, roles: ROLE_ADMIN }
+ - { path: ^/admin/blog/delete/*, roles: ROLE_ADMIN }
+ - { path: ^/admin, roles: ROLE_USER }

0 comments on commit c00e390

Please sign in to comment.