Merge pull request #2174 from paulkaplan/fix-comment-replying

Prevent replying when comments are turned off
This commit is contained in:
Paul Kaplan 2018-10-12 09:11:34 -04:00 committed by GitHub
commit 9e1741f883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,7 +358,7 @@ const PreviewPresentation = ({
{comments.map(comment => (
<TopLevelComment
author={comment.author}
canReply={isLoggedIn}
canReply={isLoggedIn && projectInfo.comments_allowed}
content={comment.content}
datetimeCreated={comment.datetime_created}
deletable={userOwnsProject}