Fixed readOnly status for calendar

This commit is contained in:
Alexis
2025-03-01 13:19:02 +01:00
parent 4dbd80fa80
commit 189f0eec75

View File

@@ -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
} }
/** /**