From dd5a4bb35e42a62d8cb2f8b3e973f0e98d2d55b6 Mon Sep 17 00:00:00 2001 From: James Morris Date: Tue, 19 Jul 2022 17:51:17 +0100 Subject: [PATCH] Added a member check for showing more menu or not - This should stop people who are not logged in from showing more menu refs https://github.com/TryGhost/Team/issues/1693 --- apps/comments-ui/src/components/More.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/comments-ui/src/components/More.js b/apps/comments-ui/src/components/More.js index 9489acf303..a23ec73416 100644 --- a/apps/comments-ui/src/components/More.js +++ b/apps/comments-ui/src/components/More.js @@ -19,6 +19,10 @@ const More = (props) => { */ const show = (!!member && comment.status === 'published') || !!admin; + if (!member) { + return null; + } + return (
{show ? : null}