Browse Source

Fixed story chapter comment permission check not allowing other users to comment.

master 1.3.2
Gisle Aune 6 years ago
parent
commit
5c4446f161
  1. 3
      marko/page/story-content/components/chapter/index.marko

3
marko/page/story-content/components/chapter/index.marko

@ -27,7 +27,8 @@
user=input.user user=input.user
on-open("onOpenComment", comment) on-open("onOpenComment", comment)
/> />
<if-permitted if(input.chapter.canComment) user=input.user author=input.chapter.author permission="chapter.edit">
<if-permitted if(input.chapter.canComment) user=input.user permission=["member", "chapter.edit"]>
<div class="add-comment color-menu" on-click("open", "addComment") >Add ${state.commentLabels[input.chapter.commentMode] || "Comment"}</div> <div class="add-comment color-menu" on-click("open", "addComment") >Add ${state.commentLabels[input.chapter.commentMode] || "Comment"}</div>
</if-permitted> </if-permitted>
</div> </div>

Loading…
Cancel
Save