From 9c8ed801d821d8bcd0bb07cfd938d519cc488a3f Mon Sep 17 00:00:00 2001 From: Hunternif Date: Sun, 16 Feb 2025 19:28:29 +0000 Subject: client: hide "mass edit" buttons when no privilege --- client/html/posts_header.tpl | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'client/html/posts_header.tpl') diff --git a/client/html/posts_header.tpl b/client/html/posts_header.tpl index 311964c..b45106c 100644 --- a/client/html/posts_header.tpl +++ b/client/html/posts_header.tpl @@ -30,19 +30,21 @@ } else { %>Syntax help<% } %><% %><% - %><% - %><% - if (window.innerWidth <= 500) { %>Mass<% - } else { %>Mass edit<% } - %><% - %><% - %><% - if (window.innerWidth <= 500) { %>Mass<% - } else { %>Mass edit<% } - %><% - %><% - %><% - %><% + if (ctx.canBulkEdit) { + %><% + %><% + if (window.innerWidth <= 500) { %>Mass<% + } else { %>Mass edit<% } + %><% + %><% + %><% + if (window.innerWidth <= 500) { %>Mass<% + } else { %>Mass edit<% } + %><% + %><% + %><% + %><% + } if (ctx.canViewMetrics) { %><% %><% -- cgit v1.3