{"action":"created","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1682","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1682/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1682/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1682/events","html_url":"https://github.com/cockpit-project/cockpit/pull/1682","id":54818054,"number":1682,"title":"WIP: Permission lookups","user":{"login":"petervo","id":10439156,"avatar_url":"https://avatars.githubusercontent.com/u/10439156?v=3","gravatar_id":"","url":"https://api.github.com/users/petervo","html_url":"https://github.com/petervo","followers_url":"https://api.github.com/users/petervo/followers","following_url":"https://api.github.com/users/petervo/following{/other_user}","gists_url":"https://api.github.com/users/petervo/gists{/gist_id}","starred_url":"https://api.github.com/users/petervo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petervo/subscriptions","organizations_url":"https://api.github.com/users/petervo/orgs","repos_url":"https://api.github.com/users/petervo/repos","events_url":"https://api.github.com/users/petervo/events{/privacy}","received_events_url":"https://api.github.com/users/petervo/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":null,"comments":4,"created_at":"2015-01-19T22:03:47Z","updated_at":"2015-01-20T14:12:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/1682","html_url":"https://github.com/cockpit-project/cockpit/pull/1682","diff_url":"https://github.com/cockpit-project/cockpit/pull/1682.diff","patch_url":"https://github.com/cockpit-project/cockpit/pull/1682.patch"},"body":"This is a companion PR to #1645. \r\n\r\nThere is still work to do here and this commit will probably be squashed out of existence, but i figured I'd ask for a early review of what is there so far particularly the way i'm going about testing. "},"comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments/70658622","html_url":"https://github.com/cockpit-project/cockpit/pull/1682#issuecomment-70658622","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1682","id":70658622,"user":{"login":"petervo","id":10439156,"avatar_url":"https://avatars.githubusercontent.com/u/10439156?v=3","gravatar_id":"","url":"https://api.github.com/users/petervo","html_url":"https://github.com/petervo","followers_url":"https://api.github.com/users/petervo/followers","following_url":"https://api.github.com/users/petervo/following{/other_user}","gists_url":"https://api.github.com/users/petervo/gists{/gist_id}","starred_url":"https://api.github.com/users/petervo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petervo/subscriptions","organizations_url":"https://api.github.com/users/petervo/orgs","repos_url":"https://api.github.com/users/petervo/repos","events_url":"https://api.github.com/users/petervo/events{/privacy}","received_events_url":"https://api.github.com/users/petervo/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T14:12:45Z","updated_at":"2015-01-20T14:12:45Z","body":"I might be missing something but In testing this I've found that making CheckAuthorization calls without the AllowUserInteraction flag returns also return False, True for unprivileged users. with the flag I get False, False. Although according to the docs we aren't supposed to pass that unless the call is being made in response to a user action. For now this doesn't result in a blocked call although that could change with #1596."}}