{ "id": "90562", "key": "AC-3178", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-01-01T22:06:12.000+0000", "created": "2012-04-19T08:18:43.000+0000", "labels": [ "ACS", "Cloud" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The documents state that \"Only the owner of the object can update the object.\"\r\n\r\nHow can someone else update an object created by another?\r\n\r\nFor example i have created an object like so:\r\n\r\nCloud.Objects.create({ classname: 'cars', fields: { make: 'nissan', color: 'blue', year: 2005 } }, function (e) { if (e.success) { var car = e.cars[0]; alert('Success:\\\\n' + 'id: ' + car.id + '\\\\n' + 'make: ' + car.make + '\\\\n' + 'color: ' + car.color + '\\\\n' + 'year: ' + car.year + '\\\\n' + 'created_at: ' + car.created_at); } else { alert('Error:\\\\n' + ((e.error && e.message) || JSON.stringify(e))); } });\r\n\r\n\r\nWe then want another user who is logged into my app to update it like so:\r\nCloud.Objects.update({ classname: 'cars', id: savedCar1.id, fields: { color: 'purple', mileage: 10000 } }, function (e) { if (e.success) { var car = e.cars[0]; alert('Success:\\\\n' + 'id: ' + car.id + '\\\\n' + 'make: ' + car.make + '\\\\n' + 'color: ' + car.color + '\\\\n' + 'year: ' + car.year + '\\\\n' + 'mileage: ' + car.mileage + '\\\\n' + 'updated_at: ' + car.updated_at); } else { alert('Error:\\\\n' + ((e.error && e.message) || JSON.stringify(e))); } });\r\n\r\nCan this be looked at please\r\n", "attachment": [], "flagged": false, "summary": "ACS Object update by another", "creator": { "name": "immiejay", "key": "immiejay", "displayName": "Imraan Jhetam", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "immiejay", "key": "immiejay", "displayName": "Imraan Jhetam", "active": true, "timeZone": "Europe/London" }, "environment": "Mobile", "comment": { "comments": [ { "id": "197598", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello,\r\n\r\nthe behavior you described is expected: currently it is not possible to edit objects created by others, while it is allowed to see them.\r\n\r\nWe are working on a ACL feature that will allow to configure read/write properties for the objects; this will be released in the near future.\r\n\r\nThanks for contacting us.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-06T16:40:32.000+0000", "updated": "2012-06-06T16:40:32.000+0000" }, { "id": "286422", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ACS now supports ACL functionality that should enable you to implement your use case. Please let us know if you have any follow up question.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-01T22:06:12.000+0000", "updated": "2014-01-01T22:06:12.000+0000" }, { "id": "286423", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "http://docs.appcelerator.com/cloud/latest/#!/api/ACLs", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-01T22:06:34.000+0000", "updated": "2014-01-01T22:06:34.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }