Prevent replying when comments are turned off

This commit is contained in:
Paul Kaplan 2018-10-11 11:54:58 -04:00
parent 1f8342b987
commit 600ba29933

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}