mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Added new Twig filter to sort a collection set.
Only currently used in admin/tree.html.twig but could be used in collection rights.
This commit is contained in:
@@ -166,7 +166,7 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% for collection in databox.get_collections() %}
|
||||
{% for collection in databox.get_collections()|sort_collections %}
|
||||
{% if (collection.get_base_id() in app.getAclForUser(app.getAuthenticatedUser()).get_granted_base(['canadmin'])|keys
|
||||
or collection.get_base_id() in app.getAclForUser(app.getAuthenticatedUser()).get_granted_base(['manage'])|keys
|
||||
or collection.get_base_id() in app.getAclForUser(app.getAuthenticatedUser()).get_granted_base(['modify_struct'])|keys) %}
|
||||
|
Reference in New Issue
Block a user