mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-23 00:32:11 +00: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