Skip to content

Commit

Permalink
feat: hide signatures when they are disabled at the board level, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Jun 23, 2020
1 parent dc1d7a2 commit a65ddf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/ept-posts/client/posts/posts.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var ctrl = [
parent.writeAccess = pageData.write_access;
parent.bannedFromBoard = BanSvc.banStatus();
parent.disablePostEdit = pageData.board.disable_post_edit;
parent.disableSignature = pageData.board.disable_signature;
this.rootUrl = generateBaseUrl();
this.user = Session.user;
this.posts = pageData.posts;
Expand Down
2 changes: 1 addition & 1 deletion modules/ept-posts/client/posts/posts.data.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</div>
<!-- Post Body -->
<div class="post-body" ng-class="{ 'rtl': post.right_to_left }" post-processing="post.body_html" style-fix="true"></div>
<div ng-if="post.user.signature">
<div ng-if="post.user.signature && !PostsParentCtrl.disableSignature">
<div class="post-sig-border"></div>
<div class="post-signature" post-processing="post.user.signature" style-fix="true"></div>
</div>
Expand Down

0 comments on commit a65ddf6

Please sign in to comment.