{"action":"created","issue":{"url":"https://api.github.com/repos/instedd/cdx/issues/330","labels_url":"https://api.github.com/repos/instedd/cdx/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/instedd/cdx/issues/330/comments","events_url":"https://api.github.com/repos/instedd/cdx/issues/330/events","html_url":"https://github.com/instedd/cdx/issues/330","id":104708940,"number":330,"title":"[policies] Add publishing permission to device models","user":{"login":"nekron","id":957103,"avatar_url":"https://avatars.githubusercontent.com/u/957103?v=3","gravatar_id":"","url":"https://api.github.com/users/nekron","html_url":"https://github.com/nekron","followers_url":"https://api.github.com/users/nekron/followers","following_url":"https://api.github.com/users/nekron/following{/other_user}","gists_url":"https://api.github.com/users/nekron/gists{/gist_id}","starred_url":"https://api.github.com/users/nekron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekron/subscriptions","organizations_url":"https://api.github.com/users/nekron/orgs","repos_url":"https://api.github.com/users/nekron/repos","events_url":"https://api.github.com/users/nekron/events{/privacy}","received_events_url":"https://api.github.com/users/nekron/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/instedd/cdx/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"spalladino","id":429604,"avatar_url":"https://avatars.githubusercontent.com/u/429604?v=3","gravatar_id":"","url":"https://api.github.com/users/spalladino","html_url":"https://github.com/spalladino","followers_url":"https://api.github.com/users/spalladino/followers","following_url":"https://api.github.com/users/spalladino/following{/other_user}","gists_url":"https://api.github.com/users/spalladino/gists{/gist_id}","starred_url":"https://api.github.com/users/spalladino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalladino/subscriptions","organizations_url":"https://api.github.com/users/spalladino/orgs","repos_url":"https://api.github.com/users/spalladino/repos","events_url":"https://api.github.com/users/spalladino/events{/privacy}","received_events_url":"https://api.github.com/users/spalladino/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/instedd/cdx/milestones/10","html_url":"https://github.com/instedd/cdx/milestones/Release%200.6","labels_url":"https://api.github.com/repos/instedd/cdx/milestones/10/labels","id":1253966,"number":10,"title":"Release 0.6","description":"","creator":{"login":"nekron","id":957103,"avatar_url":"https://avatars.githubusercontent.com/u/957103?v=3","gravatar_id":"","url":"https://api.github.com/users/nekron","html_url":"https://github.com/nekron","followers_url":"https://api.github.com/users/nekron/followers","following_url":"https://api.github.com/users/nekron/following{/other_user}","gists_url":"https://api.github.com/users/nekron/gists{/gist_id}","starred_url":"https://api.github.com/users/nekron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nekron/subscriptions","organizations_url":"https://api.github.com/users/nekron/orgs","repos_url":"https://api.github.com/users/nekron/repos","events_url":"https://api.github.com/users/nekron/events{/privacy}","received_events_url":"https://api.github.com/users/nekron/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":2,"state":"open","created_at":"2015-08-13T17:37:43Z","updated_at":"2015-10-05T19:28:21Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-09-03T14:34:02Z","updated_at":"2015-10-06T17:24:17Z","closed_at":null,"body":"- [ ] only super admins should be allowed to delete published device models\r\n- [ ] Manufacturers should be able to create, delete and edit device models that aren't published\r\n- [ ] A manufacturer admin should be able to publish a device model\r\n- [ ] A manufacturer admin should be able to edit a published device model\r\n- [ ] An unpublished device model should only be seen from inside the same organization."},"comment":{"url":"https://api.github.com/repos/instedd/cdx/issues/comments/145933871","html_url":"https://github.com/instedd/cdx/issues/330#issuecomment-145933871","issue_url":"https://api.github.com/repos/instedd/cdx/issues/330","id":145933871,"user":{"login":"spalladino","id":429604,"avatar_url":"https://avatars.githubusercontent.com/u/429604?v=3","gravatar_id":"","url":"https://api.github.com/users/spalladino","html_url":"https://github.com/spalladino","followers_url":"https://api.github.com/users/spalladino/followers","following_url":"https://api.github.com/users/spalladino/following{/other_user}","gists_url":"https://api.github.com/users/spalladino/gists{/gist_id}","starred_url":"https://api.github.com/users/spalladino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalladino/subscriptions","organizations_url":"https://api.github.com/users/spalladino/orgs","repos_url":"https://api.github.com/users/spalladino/repos","events_url":"https://api.github.com/users/spalladino/events{/privacy}","received_events_url":"https://api.github.com/users/spalladino/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T17:24:17Z","updated_at":"2015-10-06T17:24:17Z","body":"Options to model permissions over device models published and unpublished:\r\n\r\n1. Split device model into two resources: `publishedDeviceModel` y `unpublishedDeviceModel`\r\n2. Add a condition over device model: `deviceModel?published=true`\r\n3. Duplicate all actions for published and unpublished: `deviceModel:readPublished` y `deviceModel:readUnpublished`"}}