Fixed readOnly status for calendar
This commit is contained in:
@@ -52,7 +52,7 @@ export const useCalendar = defineStore("calendar", () => {
|
|||||||
|
|
||||||
function setReadStatus(gmId: string) {
|
function setReadStatus(gmId: string) {
|
||||||
// If the user is not logged in, or the calendar is not owned by the user, it's read-only
|
// If the user is not logged in, or the calendar is not owned by the user, it's read-only
|
||||||
isReadOnly.value = (!user) || (gmId !== user.value?.id)
|
isReadOnly.value = !user.value || gmId !== user.value.id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user