Commit 600ba299 authored by Paul Kaplan's avatar Paul Kaplan

Prevent replying when comments are turned off

parent 1f8342b9
...@@ -358,7 +358,7 @@ const PreviewPresentation = ({ ...@@ -358,7 +358,7 @@ const PreviewPresentation = ({
{comments.map(comment => ( {comments.map(comment => (
<TopLevelComment <TopLevelComment
author={comment.author} author={comment.author}
canReply={isLoggedIn} canReply={isLoggedIn && projectInfo.comments_allowed}
content={comment.content} content={comment.content}
datetimeCreated={comment.datetime_created} datetimeCreated={comment.datetime_created}
deletable={userOwnsProject} deletable={userOwnsProject}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment