]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/security.yml
Merge pull request #1063 from wallabag/v2-rename-tags-entity
[github/wallabag/wallabag.git] / app / config / security.yml
index f4fefe2e4f24e550ddb4ec11305fd2cf7cdca8c0..e161c3b53b911f70f77443f51c30609fa52263ff 100644 (file)
@@ -1,6 +1,6 @@
 security:
     encoders:
-        Wallabag\CoreBundle\Entity\Users:
+        Wallabag\CoreBundle\Entity\User:
             algorithm:        sha1
             encode_as_base64: false
             iterations:       1
@@ -11,7 +11,7 @@ security:
 
     providers:
         administrators:
-            entity: { class: WallabagCoreBundle:Users, property: username }
+            entity: { class: WallabagCoreBundle:User, property: username }
 
     # the main part of the security, where you can set up firewalls
     # for specific sections of your app
@@ -54,5 +54,6 @@ security:
                 target: /
 
     access_control:
+        - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY }
         - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
         - { path: ^/, roles: ROLE_USER }