{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5640","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5640/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5640/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5640/events","html_url":"https://github.com/Automattic/wp-calypso/issues/5640","id":157267833,"number":5640,"title":"Sites: don't show current site domain notice for non-admin users","user":{"login":"lancewillett","id":66797,"avatar_url":"https://avatars.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},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Domains","name":"Domains","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Plans","name":"Plans","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Sites","name":"Sites","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"gwwar","id":1270189,"avatar_url":"https://avatars.githubusercontent.com/u/1270189?v=3","gravatar_id":"","url":"https://api.github.com/users/gwwar","html_url":"https://github.com/gwwar","followers_url":"https://api.github.com/users/gwwar/followers","following_url":"https://api.github.com/users/gwwar/following{/other_user}","gists_url":"https://api.github.com/users/gwwar/gists{/gist_id}","starred_url":"https://api.github.com/users/gwwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwwar/subscriptions","organizations_url":"https://api.github.com/users/gwwar/orgs","repos_url":"https://api.github.com/users/gwwar/repos","events_url":"https://api.github.com/users/gwwar/events{/privacy}","received_events_url":"https://api.github.com/users/gwwar/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-05-27T18:44:01Z","updated_at":"2016-05-30T11:18:52Z","closed_at":"2016-05-27T19:46:15Z","body":"#### Steps to reproduce\r\n1. Starting at URL: logged in, any My Sites URL like stats or blog posts\r\n2. On a site with more than one user, log in as both admin and an editor or contributor (separate sessions)\r\n3. If `domainCreditsInfoNotice` a/b test is running `showNotice` you'll see the message for all user roles\r\n\r\n<img width=\"819\" alt=\"screen shot 2016-05-27 at 11 41 17\" src=\"https://cloud.githubusercontent.com/assets/66797/15617911/f20d9f3c-23ff-11e6-8554-4b1eea48b0cb.png\">\r\n\r\n(Testing with WP Desktop app in this case.)\r\n\r\n<img width=\"332\" alt=\"screen shot 2016-05-27 at 2 34 01 pm\" src=\"https://cloud.githubusercontent.com/assets/66797/15617949/33bd204c-2400-11e6-8f6c-f6db1ef4fd22.png\">\r\n\r\n#### What I expected\r\nOnly to see the notice when logged in as the owner of the site.\r\n\r\n#### What happened instead\r\nEveryone sees it. When you click the notice \"Claim\" link without being able to administer the site, you are asked to select a site (because you can't apply a credit to current site). \r\n\r\nI think we should hide the notices for non-admins — or make it clear to claim the credit you should contact the site owner."},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/222470969","html_url":"https://github.com/Automattic/wp-calypso/issues/5640#issuecomment-222470969","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/5640","id":222470969,"user":{"login":"mtias","id":548849,"avatar_url":"https://avatars.githubusercontent.com/u/548849?v=3","gravatar_id":"","url":"https://api.github.com/users/mtias","html_url":"https://github.com/mtias","followers_url":"https://api.github.com/users/mtias/followers","following_url":"https://api.github.com/users/mtias/following{/other_user}","gists_url":"https://api.github.com/users/mtias/gists{/gist_id}","starred_url":"https://api.github.com/users/mtias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtias/subscriptions","organizations_url":"https://api.github.com/users/mtias/orgs","repos_url":"https://api.github.com/users/mtias/repos","events_url":"https://api.github.com/users/mtias/events{/privacy}","received_events_url":"https://api.github.com/users/mtias/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T11:18:52Z","updated_at":"2016-05-30T11:18:52Z","body":"Thanks for catching this one."}}
{"actor":{"display_login":"mtias"}}