{"action":"created","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1645","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1645/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1645/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1645/events","html_url":"https://github.com/cockpit-project/cockpit/pull/1645","id":54211593,"number":1645,"title":"WIP - API for tracking user permissions and privileges","user":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockpit-project/cockpit/labels/needswork","name":"needswork","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cockpit-project/cockpit/milestones/4","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/milestones/4/labels","id":572654,"number":4,"title":"Modular Webapp","description":"The webapp will be loaded from multiple sources and combined in the browser.","creator":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":106,"state":"open","created_at":"2014-02-18T08:59:10Z","updated_at":"2015-01-13T16:08:25Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-01-13T16:07:35Z","updated_at":"2015-01-13T19:37:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/1645","html_url":"https://github.com/cockpit-project/cockpit/pull/1645","diff_url":"https://github.com/cockpit-project/cockpit/pull/1645.diff","patch_url":"https://github.com/cockpit-project/cockpit/pull/1645.patch"},"body":"This adds an API called ```cockpit.permission()``` to track user permission and privileges.\r\n\r\nThe end goal of this API is to allow the UI to react to the user's privileges, by disabling buttons, etc. The end goal is not to make access control decisions on the javascript side."},"comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments/69805209","html_url":"https://github.com/cockpit-project/cockpit/pull/1645#issuecomment-69805209","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1645","id":69805209,"user":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T19:37:27Z","updated_at":"2015-01-13T19:37:27Z","body":"http://stackoverflow.com/questions/10276133/how-to-disable-html-links"}}