Fix readonly check (#10824)
parent
cf4d2b4ef5
commit
d178962c37
|
@ -409,7 +409,7 @@ export default class GoogleCalendarService implements Calendar {
|
|||
integration: this.integrationName,
|
||||
name: cal.summary ?? "No name",
|
||||
primary: cal.primary ?? false,
|
||||
readOnly: !(cal.accessRole === "reader" || cal.accessRole === "owner") && true,
|
||||
readOnly: !(cal.accessRole === "writer" || cal.accessRole === "owner") && true,
|
||||
email: cal.id ?? "",
|
||||
};
|
||||
return calendar;
|
||||
|
|
Loading…
Reference in New Issue