Bug 1504753 - Change call cal.userCanRespondToInvitation to cal.acl.userCanRespondToInvitation. r=philipp
authorMakeMyDay <makemyday@gmx-topmail.de>
Mon, 05 Nov 2018 18:27:39 +0100
changeset 33702 77212297c915ec15d690788eeac94a726d6319c3
parent 33701 0eb273edd4ab0ec05bf53914f56e1eee12e10795
child 33703 7ac42d333c2085e6df3ca99d470e2ed9937cdadd
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersphilipp
bugs1504753
Bug 1504753 - Change call cal.userCanRespondToInvitation to cal.acl.userCanRespondToInvitation. r=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);
             }