Fixed story chapter comment permission check not allowing other users to comment.
the build was successful
the build was successful
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user