diff options
author | Vitaly Takmazov | 2023-02-04 06:13:55 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-02-04 06:13:55 +0300 |
commit | a930a277316c99d94907a9418716e3b3eabb8e39 (patch) | |
tree | a46b2c6215b94f7d2e3f074490a0b4ac3d162e87 /vnext/src/ui/Thread.js | |
parent | fa8a741470485c2b3c0afdfe64534024375bd901 (diff) |
vnext: hide reply UI for anonymous users
Diffstat (limited to 'vnext/src/ui/Thread.js')
-rw-r--r-- | vnext/src/ui/Thread.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index 2919e830..f26eead6 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -132,7 +132,7 @@ export default function Thread(props) { { message.mid ? ( <Message key={message.mid} data={message} isThread={true} onToggleSubscription={handleSubsciptionToggle}> - {active === (message.rid || 0) && <MessageInput data={message} text={editing.body || ''} onSend={postComment}>Write a comment...</MessageInput>} + {active === (message.rid || 0) && visitor.uid > 0 && <MessageInput data={message} text={editing.body || ''} onSend={postComment}>Write a comment...</MessageInput>} </Message> ) : ( <Spinner /> |