mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
Disallow comments on an unshared project
This commit is contained in:
parent
976524b64d
commit
1d223825df
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue