Bug 340949: readOnly attribute acts readOnly in case not logged in which should not be for suppressAlarms

This commit is contained in:
daniel.boelzle%sun.com 2006-11-03 15:18:58 +00:00
Родитель 97956a9f9b
Коммит cf30443700
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -231,7 +231,9 @@ calWcapCalendar.prototype = {
return (this.m_bSuppressAlarms ||
// writing lastAck does currently not work on readOnly cals,
// so avoid alarms if not writable at all... discuss!
this.readOnly ||
// use m_bReadOnly here instead of attribute, because this
// calendar acts read-only if not logged in
this.m_bReadOnly ||
// xxx todo: check write permissions in advance
// alarms only for own calendars:
!this.isOwnedCalendar);