{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14243","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14243/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14243/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14243/events","html_url":"https://github.com/Automattic/wp-calypso/issues/14243","id":229829204,"number":14243,"title":"Posts: draft count shows the number for all users instead of what the logged-in user has rights to see","user":{"login":"designsimply","id":1119271,"avatar_url":"https://avatars3.githubusercontent.com/u/1119271?v=3","gravatar_id":"","url":"https://api.github.com/users/designsimply","html_url":"https://github.com/designsimply","followers_url":"https://api.github.com/users/designsimply/followers","following_url":"https://api.github.com/users/designsimply/following{/other_user}","gists_url":"https://api.github.com/users/designsimply/gists{/gist_id}","starred_url":"https://api.github.com/users/designsimply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designsimply/subscriptions","organizations_url":"https://api.github.com/users/designsimply/orgs","repos_url":"https://api.github.com/users/designsimply/repos","events_url":"https://api.github.com/users/designsimply/events{/privacy}","received_events_url":"https://api.github.com/users/designsimply/received_events","type":"User","site_admin":false},"labels":[{"id":285009982,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/API","name":"API","color":"bfdadc","default":false},{"id":285009979,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Posts","name":"Posts","color":"006b75","default":false},{"id":285009975,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/129","html_url":"https://github.com/Automattic/wp-calypso/milestone/129","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/129/labels","id":2038414,"number":129,"title":"Feature Parity Audit: wp-admin","description":"Where do we still have gaps in Calypso? Where are the gaps in functionality and features? What do we still go back to wp-admin for instead?","creator":{"login":"lancewillett","id":66797,"avatar_url":"https://avatars2.githubusercontent.com/u/66797?v=3","gravatar_id":"","url":"https://api.github.com/users/lancewillett","html_url":"https://github.com/lancewillett","followers_url":"https://api.github.com/users/lancewillett/followers","following_url":"https://api.github.com/users/lancewillett/following{/other_user}","gists_url":"https://api.github.com/users/lancewillett/gists{/gist_id}","starred_url":"https://api.github.com/users/lancewillett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lancewillett/subscriptions","organizations_url":"https://api.github.com/users/lancewillett/orgs","repos_url":"https://api.github.com/users/lancewillett/repos","events_url":"https://api.github.com/users/lancewillett/events{/privacy}","received_events_url":"https://api.github.com/users/lancewillett/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":32,"state":"open","created_at":"2016-09-29T18:33:19Z","updated_at":"2017-05-25T02:24:19Z","due_on":"2017-08-01T07:00:00Z","closed_at":null},"comments":0,"created_at":"2017-05-18T23:10:30Z","updated_at":"2017-05-29T23:19:48Z","closed_at":null,"body":"The post_counts API endpoint returning a count for drafts for all users even if I am logged in as an Author or Contributor role and can only see my own drafts.\r\n\r\nSteps to reproduce:\r\n\r\n1. Start with a WordPress.com blog with saved drafts made with an Administrator or Editor user.\r\n1. Log out and log back in to the same blog as an Author or Contributor user.\r\n1. Go to My Sites > Blog Posts > Drafts > Everyone.\r\n1. Check to see if the draft count is shown for all users or the logged-in user.\r\n\r\n<strong>Result:</strong> the draft count is shown for all users instead of what the logged-in user has rights to see as expected.\r\n\r\n![screen shot 2017-05-18 at thu may 18 5 07 39 pm](https://cloud.githubusercontent.com/assets/1119271/26226984/c6579f5e-3bec-11e7-9689-1b2d03d0e380.png)\r\n<sup>Seen at https://wordpress.com/posts/drafts/5276229 using Firefox 53.0.2 on Mac OS X 10.12.4 logged in as design5279c (a contributor on the blog).</sup>\r\n\r\n/hat tip @timmyc for the original report at https://github.com/Automattic/wp-calypso/issues/1231#issuecomment-267689602"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/304743055","html_url":"https://github.com/Automattic/wp-calypso/issues/14243#issuecomment-304743055","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14243","id":304743055,"user":{"login":"designsimply","id":1119271,"avatar_url":"https://avatars3.githubusercontent.com/u/1119271?v=3","gravatar_id":"","url":"https://api.github.com/users/designsimply","html_url":"https://github.com/designsimply","followers_url":"https://api.github.com/users/designsimply/followers","following_url":"https://api.github.com/users/designsimply/following{/other_user}","gists_url":"https://api.github.com/users/designsimply/gists{/gist_id}","starred_url":"https://api.github.com/users/designsimply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designsimply/subscriptions","organizations_url":"https://api.github.com/users/designsimply/orgs","repos_url":"https://api.github.com/users/designsimply/repos","events_url":"https://api.github.com/users/designsimply/events{/privacy}","received_events_url":"https://api.github.com/users/designsimply/received_events","type":"User","site_admin":false},"created_at":"2017-05-29T23:19:48Z","updated_at":"2017-05-29T23:19:48Z","body":"Note that this is different than the wp-admin experience where a logged-in contributor can see (but cannot edit) everyone's drafts. Here is a screenshot for comparison:\r\n\r\n![screen shot 2017-05-29 at mon may 29 5 17 56 pm](https://cloud.githubusercontent.com/assets/1119271/26563688/0244275e-4493-11e7-88f6-9a118f082ed9.png)\r\n<sup>Seen at https://design5279.wordpress.com/wp-admin/edit.php?post_status=draft&post_type=post using Firefox 53.0.3 on Mac OS X 10.12.5 logged in as design5279c (a contributor on the blog).</sup>"}}
{"actor":{"display_login":"designsimply"}}