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">
{projectInfo.comments_allowed ? (
isLoggedIn ? (
<ComposeComment
isShared && <ComposeComment
projectId={projectId}
onAddComment={onAddComment}
/>
@ -543,7 +543,7 @@ const PreviewPresentation = ({
<TopLevelComment
author={comment.author}
canDelete={canDeleteComments}
canReply={isLoggedIn && projectInfo.comments_allowed}
canReply={isLoggedIn && projectInfo.comments_allowed && isShared}
canReport={isLoggedIn}
canRestore={canRestoreComments}
content={comment.content}