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
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:
parent
dba1904228
commit
14548b0f92
|
@ -30,7 +30,7 @@ export const useEventRights = (event?: EventModel) => {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
canEditEvent: isEventAdmin || isStex,
|
canEditEvent: isEventAdmin || isStex,
|
||||||
isPrivilegedUser: privilegedUsers.includes(user?.id),
|
isPrivilegedUser: user && privilegedUsers.includes(user?.id),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue