diff options
| author | Hunternif <hunternif@gmail.com> | 2025-02-16 19:20:08 +0000 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2025-02-16 19:20:08 +0000 |
| commit | 9bbbae62f19fe307b11630cac913a59df2b1c957 (patch) | |
| tree | 0dddabd755529cf2d5e48e4a044b81932144a89c /client/html/posts_header.tpl | |
| parent | 013055187ab28a483acde00f8390e49a44d8b9e2 (diff) | |
client+server: permission posts:bulk-edit:relations
Diffstat (limited to 'client/html/posts_header.tpl')
| -rw-r--r-- | client/html/posts_header.tpl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl index 1e30eb4..311964c 100644 --- a/client/html/posts_header.tpl +++ b/client/html/posts_header.tpl @@ -73,11 +73,12 @@ %><a href class='mousetrap button append close'>Stop editing safety</a><% %></form><% } - %><!--TODO: create permission--><% - %><form class='horizontal bulk-edit bulk-add-relation'><% - %><a href class='mousetrap button append open'>Mass add relation</a><% - %><a href class='mousetrap button append close'>Stop adding relation</a><% - %></form><% + if (ctx.canBulkEditRelations) { + %><form class='horizontal bulk-edit bulk-add-relation'><% + %><a href class='mousetrap button append open'>Mass add relation</a><% + %><a href class='mousetrap button append close'>Stop adding relation</a><% + %></form><% + } if (ctx.canBulkDelete) { %><form class='horizontal bulk-edit bulk-edit-delete'><% %><a href class='mousetrap button append open'>Mass delete</a><% |