mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 08:55:08 +00:00
Add attribute isReadOnly to event/task JSON view
This commit is contained in:
@@ -548,6 +548,7 @@
|
||||
* @apiSuccess (Success 200) {String} endDate End date (ISO8601)
|
||||
* @apiSuccess (Success 200) {String} localizedEndDate Formatted end date
|
||||
* @apiSuccess (Success 200) {String} [localizedEndTime] Formatted end time
|
||||
* @apiSuccess (Success 200) {Number} isReadOnly 1 if event is read-only
|
||||
*
|
||||
* From [iCalEvent+SOGo attributes]
|
||||
*
|
||||
@@ -669,6 +670,7 @@
|
||||
[co nameInContainer], @"id",
|
||||
[componentCalendar nameInContainer], @"pid",
|
||||
[componentCalendar displayName], @"calendar",
|
||||
[NSNumber numberWithBool: [self isReadOnly]], @"isReadOnly",
|
||||
[dateFormatter formattedDate: eventStartDate], @"localizedStartDate",
|
||||
[dateFormatter formattedDate: eventEndDate], @"localizedEndDate",
|
||||
nil];
|
||||
|
||||
Reference in New Issue
Block a user