Bug 1504753 - Change call cal.userCanRespondToInvitation to cal.acl.userCanRespondToInvitation. r+a=philipp
authorMakeMyDay <makemyday@gmx-topmail.de>
Mon, 05 Nov 2018 18:27:39 +0100
changeset 33499 c4aca7ee59e8825d301e7e37a71609c5e6ba8f47
parent 33498 d014d162075c10c75b787857a1a9cfcf624697fd
child 33500 0232450e2c9b7be855adf04bf31d2ffc2babc8cf
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
bugs1504753
Bug 1504753 - Change call cal.userCanRespondToInvitation to cal.acl.userCanRespondToInvitation. r+a=philipp
calendar/base/content/dialogs/calendar-summary-dialog.js
--- a/calendar/base/content/dialogs/calendar-summary-dialog.js
+++ b/calendar/base/content/dialogs/calendar-summary-dialog.js
@@ -49,17 +49,17 @@ function onLoad() {
 
     window.attendees = item.getAttendees({});
 
     let calendar = cal.wrapInstance(item.calendar, Ci.calISchedulingSupport);
     window.readOnly = !(cal.acl.isCalendarWritable(calendar) &&
                         (cal.acl.userCanModifyItem(item) ||
                          (calendar &&
                           item.calendar.isInvitation(item) &&
-                          cal.userCanRespondToInvitation(item))));
+                          cal.acl.userCanRespondToInvitation(item))));
     if (!window.readOnly && calendar) {
         let attendee = calendar.getInvitedAttendee(item);
         if (attendee) {
             // if this is an unresponded invitation, preset our default alarm values:
             if (!item.getAlarms({}).length &&
                 (attendee.participationStatus == "NEEDS-ACTION")) {
                 cal.alarms.setDefaultValues(item);
             }