Fix readonly check (#10824)

pull/10826/head
Joe Au-Yeung 2023-08-18 00:30:59 -04:00 committed by GitHub
parent cf4d2b4ef5
commit d178962c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;