Disallow comments on an unshared project

This commit is contained in:
chrisgarrity 2019-01-07 10:33:20 -05:00
parent 976524b64d
commit 1d223825df

View file

@ -522,7 +522,7 @@ const PreviewPresentation = ({
<FlexRow className="comments-root-reply"> <FlexRow className="comments-root-reply">
{projectInfo.comments_allowed ? ( {projectInfo.comments_allowed ? (
isLoggedIn ? ( isLoggedIn ? (
<ComposeComment isShared && <ComposeComment
projectId={projectId} projectId={projectId}
onAddComment={onAddComment} onAddComment={onAddComment}
/> />
@ -543,7 +543,7 @@ const PreviewPresentation = ({
<TopLevelComment <TopLevelComment
author={comment.author} author={comment.author}
canDelete={canDeleteComments} canDelete={canDeleteComments}
canReply={isLoggedIn && projectInfo.comments_allowed} canReply={isLoggedIn && projectInfo.comments_allowed && isShared}
canReport={isLoggedIn} canReport={isLoggedIn}
canRestore={canRestoreComments} canRestore={canRestoreComments}
content={comment.content} content={comment.content}