diff --git a/client/html/posts_page.tpl b/client/html/posts_page.tpl index 7080aa5..ce0c4fa 100644 --- a/client/html/posts_page.tpl +++ b/client/html/posts_page.tpl @@ -35,7 +35,7 @@ <% } %> - <% if (ctx.parameters && ctx.parameters.tag) { %> + <% if (ctx.canMassTagg && ctx.parameters && ctx.parameters.tag) { %> <% } %> diff --git a/client/js/controllers/post_list_controller.js b/client/js/controllers/post_list_controller.js index d76e3f4..00da59d 100644 --- a/client/js/controllers/post_list_controller.js +++ b/client/js/controllers/post_list_controller.js @@ -48,6 +48,7 @@ class PostListController { pageRenderer: pageCtx => { Object.assign(pageCtx, { canViewPosts: api.hasPrivilege('posts:view'), + canMassTag: api.hasPrivilege('tags:masstag'), massTagTags: this._massTagTags, }); const view = new PostsPageView(pageCtx);