mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
fix: show guest access button only with relevant config being set
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
cd68794157
commit
792f4b7dbc
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ export const GuestCard: React.FC = () => {
|
|||
|
||||
useTranslation()
|
||||
|
||||
if (guestAccessLevel === GuestAccessLevel.DENY) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<Card>
|
||||
<Card.Body>
|
||||
|
|
Loading…
Reference in a new issue