diff --git a/src/addons/calendar/pages/edit-event/edit-event.page.ts b/src/addons/calendar/pages/edit-event/edit-event.page.ts index c1807d35f..b76cc4f96 100644 --- a/src/addons/calendar/pages/edit-event/edit-event.page.ts +++ b/src/addons/calendar/pages/edit-event/edit-event.page.ts @@ -160,14 +160,20 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy, CanLeave { * @return Promise resolved when done. */ protected async fetchData(): Promise { - let accessInfo: AddonCalendarGetCalendarAccessInformationWSResponse; - this.error = false; // Get access info. try { - accessInfo = await AddonCalendar.getAccessInformation(this.courseId); - this.types = await AddonCalendar.getAllowedEventTypes(this.courseId); + const [types, accessInfo] = await Promise.all([ + AddonCalendar.getAllowedEventTypes(this.courseId), + CoreUtils.ignoreErrors(AddonCalendar.getAccessInformation(this.courseId), { + canmanageentries: false, + canmanageownentries: false, + canmanagegroupentries: false, + } as AddonCalendarGetCalendarAccessInformationWSResponse), + ]); + + this.types = types; const promises: Promise[] = []; const eventTypes = AddonCalendarHelper.getEventTypeOptions(this.types);