|
@@ -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
|