{"action":"created","issue":{"url":"https://api.github.com/repos/RubaXa/Sortable/issues/502","labels_url":"https://api.github.com/repos/RubaXa/Sortable/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/RubaXa/Sortable/issues/502/comments","events_url":"https://api.github.com/repos/RubaXa/Sortable/issues/502/events","html_url":"https://github.com/RubaXa/Sortable/issues/502","id":98564998,"number":502,"title":"(METEOR) Sortable.collections = [<collection name>]; Doesn't give the client update permissions","user":{"login":"salmansqadeer","id":310782,"avatar_url":"https://avatars.githubusercontent.com/u/310782?v=3","gravatar_id":"","url":"https://api.github.com/users/salmansqadeer","html_url":"https://github.com/salmansqadeer","followers_url":"https://api.github.com/users/salmansqadeer/followers","following_url":"https://api.github.com/users/salmansqadeer/following{/other_user}","gists_url":"https://api.github.com/users/salmansqadeer/gists{/gist_id}","starred_url":"https://api.github.com/users/salmansqadeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salmansqadeer/subscriptions","organizations_url":"https://api.github.com/users/salmansqadeer/orgs","repos_url":"https://api.github.com/users/salmansqadeer/repos","events_url":"https://api.github.com/users/salmansqadeer/events{/privacy}","received_events_url":"https://api.github.com/users/salmansqadeer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-01T22:18:29Z","updated_at":"2015-08-14T16:26:17Z","closed_at":null,"body":"Hey @dandv!\r\n\r\nI seem to have come across a bug with the latest version of Meteor Sortable.  (Also seen in this other issue:  https://github.com/RubaXa/Sortable/issues/465).\r\n\r\nEssentially, adding `Sortable.collections = [<collection name>];` to my server side code does not seem to be giving the client the permissions it needs to update the collection.  Updated to the \"order\" field are not made, and I receive the error `update failed: Access denied` in the browser.\r\n\r\nInstead, I have had to manually provide permissions by adding the following code:  \r\n`<collection name>.allow({ update: function (userId, task) { return true; } });` for this to work.  This saves the updated order in the Database, but does not avoid duplicates values for the order field.\r\n\r\nIs this a known issue?  Do I need to manually implement de-duping the order field to make sure they are sequential integers?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/RubaXa/Sortable/issues/comments/131168444","html_url":"https://github.com/RubaXa/Sortable/issues/502#issuecomment-131168444","issue_url":"https://api.github.com/repos/RubaXa/Sortable/issues/502","id":131168444,"user":{"login":"nlfonseca","id":7745591,"avatar_url":"https://avatars.githubusercontent.com/u/7745591?v=3","gravatar_id":"","url":"https://api.github.com/users/nlfonseca","html_url":"https://github.com/nlfonseca","followers_url":"https://api.github.com/users/nlfonseca/followers","following_url":"https://api.github.com/users/nlfonseca/following{/other_user}","gists_url":"https://api.github.com/users/nlfonseca/gists{/gist_id}","starred_url":"https://api.github.com/users/nlfonseca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlfonseca/subscriptions","organizations_url":"https://api.github.com/users/nlfonseca/orgs","repos_url":"https://api.github.com/users/nlfonseca/repos","events_url":"https://api.github.com/users/nlfonseca/events{/privacy}","received_events_url":"https://api.github.com/users/nlfonseca/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T16:26:17Z","updated_at":"2015-08-14T16:26:17Z","body":"+1\r\n"}}