summaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
Diffstat (limited to 'client/html')
-rw-r--r--client/html/posts_header.tpl11
-rw-r--r--client/html/posts_page.tpl2
2 files changed, 7 insertions, 6 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><%
diff --git a/client/html/posts_page.tpl b/client/html/posts_page.tpl
index bbf6a2d..524af82 100644
--- a/client/html/posts_page.tpl
+++ b/client/html/posts_page.tpl
@@ -42,7 +42,7 @@
<a href class='tag-flipper'>
</a>
<% } %>
- <% if (ctx.parameters && ctx.parameters.relations) { %>
+ <% if (ctx.canBulkEditRelations && ctx.parameters && ctx.parameters.relations) { %>
<a href class='relation-flipper'>
</a>
<% } %>