Add attribute isReadOnly to event/task JSON view

This commit is contained in:
Francis Lachapelle
2015-04-24 14:25:04 -04:00
parent 5e3b3e6987
commit 550fc09ee4
4 changed files with 92 additions and 87 deletions

View File

@@ -402,6 +402,7 @@
* @apiSuccess (Success 200) {String} completedTime Formatted completed time
* @apiSuccess (Success 200) {String} status Status (needs-action, in-process, completed, or cancelled)
* @apiSuccess (Success 200) {Number} percentComplete Percent completion
* @apiSuccess (Success 200) {Number} isReadOnly 1 if task is read-only
*
* From [iCalEntityObject+SOGo attributes]
*
@@ -519,6 +520,7 @@
[co nameInContainer], @"id",
[thisFolder nameInContainer], @"pid",
[thisFolder displayName], @"calendar",
[NSNumber numberWithBool: [self isReadOnly]], @"isReadOnly",
nil];
if (startDate)