From 83a377c3a369731a9cb15beb80b61ba1de6dc2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Fri, 11 Dec 2015 09:56:14 +0100 Subject: [PATCH] Hide history and comments if user has no permissions --- app/partials/common/history/history-base.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/partials/common/history/history-base.jade b/app/partials/common/history/history-base.jade index 4ca4a9af..0cb8289a 100644 --- a/app/partials/common/history/history-base.jade +++ b/app/partials/common/history/history-base.jade @@ -1,4 +1,4 @@ -section.history +section.history(tg-check-permission!="modify_<%- type %>") ul.history-tabs li a(href="#", class="active", data-section-class="history-comments") @@ -10,7 +10,7 @@ section.history span.tab-title(translate="ACTIVITY.TITLE") section.history-comments .comments-list - div(tg-check-permission!="modify_<%- type %>", tg-toggle-comment, class="add-comment") + div(tg-toggle-comment, class="add-comment") textarea(ng-attr-placeholder="{{'COMMENTS.TYPE_NEW_COMMENT' | translate}}", ng-model!="<%- ngmodel %>.comment", tg-markitup="tg-markitup") <% if (mode !== "edit") { %> a(class="help-markdown", href="https://taiga.io/support/taiga-markdown-syntax/", target="_blank", title="{{'COMMON.WYSIWYG.MARKDOWN_HELP' | translate}}")