Browse Source

Update security.rst

Explain how to filter list by ACL using https://github.com/coopTilleuls/CoopTilleulsAclSonataAdminExtensionBundle
Kévin Dunglas 11 years ago
parent
commit
b74fd055d2
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Resources/doc/reference/security.rst

+ 7 - 1
Resources/doc/reference/security.rst

@@ -632,6 +632,12 @@ In the templates, or in your code, you can use the Admin method ``isGranted()``:
       {# or use the default is_granted symfony helper, the following will give the same result #}
       {% if is_granted('ROLE_SUPER_ADMIN') or is_granted('DELETE', object) %} {# ... #} {% endif %}
 
+List filtering
+~~~~~~~~~~~~~~
+
+List filtering using ACL is available as a third party bundle: `CoopTilleulsAclSonataAdminExtensionBundle <https://github.com/coopTilleuls/CoopTilleulsAclSonataAdminExtensionBundle>`_.  
+When enabled, the logged in user will only see the objects for which it has the `VIEW` right (or superior).
+
 ACL editor
 ----------
 
@@ -696,4 +702,4 @@ service to use when retrieving your users.
 
 .. _`SonataUserBundle's documentation area`: http://sonata-project.org/bundles/user/master/doc/reference/installation.html
 .. _`changing the access decision strategy`: http://symfony.com/doc/2.2/cookbook/security/voters.html#changing-the-access-decision-strategy
-.. _`create your own voter`: http://symfony.com/doc/2.2/cookbook/security/voters.html
+.. _`create your own voter`: http://symfony.com/doc/2.2/cookbook/security/voters.html