                 <div class="comment wysiwyg">
                     <%= comment %>
                 </div>
-                <% if (!deleteCommentDate && mode !== "activity") { %>
+                <% if (!deleteCommentDate && mode !== "activity" && canDeleteComment) { %>
                     <a href="" class="icon icon-delete comment-delete" data-activity-id="<%- activityId %>"></a>
                 <% } %>
             <% } %>

                changesText: ""
                mode: "activity"
                deleteCommentDate: moment(change.delete_comment_date).format("DD MMM YYYY HH:mm") if change.delete_comment_date
                deleteCommentUser: getUserFullName(change.delete_comment_user) if change.delete_comment_user
                activityId: change.id
            })


                <a href="" title="Show comment" class="hide-deleted-comment hidden">(Hide deleted comment)</a>
                <div class="comment-body wysiwyg"><%= deleteComment %></div>
            </div>
            <% if (canRestoreComment) { %>
                <a href="" class="comment-restore" data-activity-id="<%- activityId %>">
                    <span class="icon icon-reload"></span>
                    <span>Restore comment</span>
                </a>
            <% } %>
        </div>
    """)

