diff options
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><% |