fix(useEventRights): fixed bug where logged-out users appeared to have access to an event
Build and Push Docker image / build-and-push (push) Successful in 7m7s Details

the user couldn't access any data since the bug only exits in the frontend but the ui didn't reflect that
This commit is contained in:
Valentin Kolb 2024-07-28 17:23:35 +02:00
parent dba1904228
commit 14548b0f92
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export const useEventRights = (event?: EventModel) => {
return {
canEditEvent: isEventAdmin || isStex,
isPrivilegedUser: privilegedUsers.includes(user?.id),
isPrivilegedUser: user && privilegedUsers.includes(user?.id),
}
}