From 792f4b7dbc3c46fe99660664b8b89728f6a9b57c Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Sat, 7 Oct 2023 17:49:47 +0200 Subject: [PATCH] fix: show guest access button only with relevant config being set Signed-off-by: Erik Michelson --- frontend/src/components/login-page/guest/guest-card.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/login-page/guest/guest-card.tsx b/frontend/src/components/login-page/guest/guest-card.tsx index 9d9f63552..b98330350 100644 --- a/frontend/src/components/login-page/guest/guest-card.tsx +++ b/frontend/src/components/login-page/guest/guest-card.tsx @@ -21,6 +21,10 @@ export const GuestCard: React.FC = () => { useTranslation() + if (guestAccessLevel === GuestAccessLevel.DENY) { + return null + } + return (