Skip to content

Commit 031c1aa

Browse files
committed
NGSTACK-906 add policy for sorting children tags
1 parent c6d1f47 commit 031c1aa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bundle/Resources/config/policies.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ tags:
99
deletesynonym: ~
1010
makesynonym: ~
1111
merge: ~
12+
sort: ~

bundle/Resources/views/admin/tag/children.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{% set can_add = is_granted('ibexa:tags:add', tag is defined ? tag : null) %}
66
{% set can_edit = is_granted('ibexa:tags:edit') %}
77
{% set can_delete = is_granted('ibexa:tags:delete') %}
8+
{% set can_sort = is_granted('ibexa:tags:sort') %}
89

910
<h3>{{ 'tag.children.title'|trans }} ({{ childrenTags|length }})</h3>
1011

@@ -74,7 +75,7 @@
7475
</div>
7576
</form>
7677

77-
{% if tag is defined and not tag.isSynonym %}
78+
{% if tag is defined and not tag.isSynonym and can_sort %}
7879
{% include '@NetgenTags/admin/tag/sort_children_tags.html.twig' %}
7980
{% endif %}
8081
{% else %}

0 commit comments

Comments
 (0)