{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/Edit-Flow/issues/325","repository_url":"https://api.github.com/repos/Automattic/Edit-Flow","labels_url":"https://api.github.com/repos/Automattic/Edit-Flow/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/Edit-Flow/issues/325/comments","events_url":"https://api.github.com/repos/Automattic/Edit-Flow/issues/325/events","html_url":"https://github.com/Automattic/Edit-Flow/pull/325","id":128295311,"number":325,"title":"Proposed fix on Calendar module for \"current_user_can\" capability check","user":{"login":"keg","id":152124,"avatar_url":"https://avatars.githubusercontent.com/u/152124?v=3","gravatar_id":"","url":"https://api.github.com/users/keg","html_url":"https://github.com/keg","followers_url":"https://api.github.com/users/keg/followers","following_url":"https://api.github.com/users/keg/following{/other_user}","gists_url":"https://api.github.com/users/keg/gists{/gist_id}","starred_url":"https://api.github.com/users/keg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keg/subscriptions","organizations_url":"https://api.github.com/users/keg/orgs","repos_url":"https://api.github.com/users/keg/repos","events_url":"https://api.github.com/users/keg/events{/privacy}","received_events_url":"https://api.github.com/users/keg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-23T04:02:19Z","updated_at":"2016-04-19T21:19:07Z","closed_at":"2016-04-19T21:06:22Z","pull_request":{"url":"https://api.github.com/repos/Automattic/Edit-Flow/pulls/325","html_url":"https://github.com/Automattic/Edit-Flow/pull/325","diff_url":"https://github.com/Automattic/Edit-Flow/pull/325.diff","patch_url":"https://github.com/Automattic/Edit-Flow/pull/325.patch"},"body":"If a custom user role has been created for write access to the calendar via the filter on https://github.com/Automattic/Edit-Flow/blob/master/modules/calendar/calendar.php#L87 and that user doesn't have WP `publish_posts` capabilities, they won't be able to create calendar entries. Proposing changing the check from `publish_posts` to `$this->create_post_cap`"},"comment":{"url":"https://api.github.com/repos/Automattic/Edit-Flow/issues/comments/212134511","html_url":"https://github.com/Automattic/Edit-Flow/pull/325#issuecomment-212134511","issue_url":"https://api.github.com/repos/Automattic/Edit-Flow/issues/325","id":212134511,"user":{"login":"keg","id":152124,"avatar_url":"https://avatars.githubusercontent.com/u/152124?v=3","gravatar_id":"","url":"https://api.github.com/users/keg","html_url":"https://github.com/keg","followers_url":"https://api.github.com/users/keg/followers","following_url":"https://api.github.com/users/keg/following{/other_user}","gists_url":"https://api.github.com/users/keg/gists{/gist_id}","starred_url":"https://api.github.com/users/keg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keg/subscriptions","organizations_url":"https://api.github.com/users/keg/orgs","repos_url":"https://api.github.com/users/keg/repos","events_url":"https://api.github.com/users/keg/events{/privacy}","received_events_url":"https://api.github.com/users/keg/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T21:19:07Z","updated_at":"2016-04-19T21:19:07Z","body":"👍 "}}