{"action":"created","issue":{"url":"https://api.github.com/repos/LibreCat/LibreCat/issues/623","repository_url":"https://api.github.com/repos/LibreCat/LibreCat","labels_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/623/comments","events_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/623/events","html_url":"https://github.com/LibreCat/LibreCat/pull/623","id":371484605,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzOTIwNDQx","number":623,"title":"can_download must do _can_do_action much sooner","user":{"login":"nicolasfranck","id":494636,"node_id":"MDQ6VXNlcjQ5NDYzNg==","avatar_url":"https://avatars0.githubusercontent.com/u/494636?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolasfranck","html_url":"https://github.com/nicolasfranck","followers_url":"https://api.github.com/users/nicolasfranck/followers","following_url":"https://api.github.com/users/nicolasfranck/following{/other_user}","gists_url":"https://api.github.com/users/nicolasfranck/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasfranck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasfranck/subscriptions","organizations_url":"https://api.github.com/users/nicolasfranck/orgs","repos_url":"https://api.github.com/users/nicolasfranck/repos","events_url":"https://api.github.com/users/nicolasfranck/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasfranck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-18T11:28:23Z","updated_at":"2018-10-18T11:47:18Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/LibreCat/LibreCat/pulls/623","html_url":"https://github.com/LibreCat/LibreCat/pull/623","diff_url":"https://github.com/LibreCat/LibreCat/pull/623.diff","patch_url":"https://github.com/LibreCat/LibreCat/pull/623.patch"},"body":"_can_do_action is only applied when status is \"closed\".\r\nSo files from records with status \"returned\" can easily be downloaded\r\nif the access_level is open_access"},"comment":{"url":"https://api.github.com/repos/LibreCat/LibreCat/issues/comments/430978042","html_url":"https://github.com/LibreCat/LibreCat/pull/623#issuecomment-430978042","issue_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/623","id":430978042,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDk3ODA0Mg==","user":{"login":"nicolasfranck","id":494636,"node_id":"MDQ6VXNlcjQ5NDYzNg==","avatar_url":"https://avatars0.githubusercontent.com/u/494636?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolasfranck","html_url":"https://github.com/nicolasfranck","followers_url":"https://api.github.com/users/nicolasfranck/followers","following_url":"https://api.github.com/users/nicolasfranck/following{/other_user}","gists_url":"https://api.github.com/users/nicolasfranck/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasfranck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasfranck/subscriptions","organizations_url":"https://api.github.com/users/nicolasfranck/orgs","repos_url":"https://api.github.com/users/nicolasfranck/repos","events_url":"https://api.github.com/users/nicolasfranck/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasfranck/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T11:47:18Z","updated_at":"2018-10-18T11:47:18Z","author_association":"CONTRIBUTOR","body":"mm, seems like _can_do_action actually requires a user. So this code always returns \"access denied\" when accessed without login."}}
{"actor":{"display_login":"nicolasfranck"}}