{"action":"closed","issue":{"url":"https://api.github.com/repos/yellowtree/wp-geoip-detect/issues/22","labels_url":"https://api.github.com/repos/yellowtree/wp-geoip-detect/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/yellowtree/wp-geoip-detect/issues/22/comments","events_url":"https://api.github.com/repos/yellowtree/wp-geoip-detect/issues/22/events","html_url":"https://github.com/yellowtree/wp-geoip-detect/issues/22","id":125720161,"number":22,"title":"Minor bug: \"GeoIP Detection: No database installed\" notice is shown to subscribers (non-admin) users","user":{"login":"meitar","id":18677,"avatar_url":"https://avatars.githubusercontent.com/u/18677?v=3","gravatar_id":"","url":"https://api.github.com/users/meitar","html_url":"https://github.com/meitar","followers_url":"https://api.github.com/users/meitar/followers","following_url":"https://api.github.com/users/meitar/following{/other_user}","gists_url":"https://api.github.com/users/meitar/gists{/gist_id}","starred_url":"https://api.github.com/users/meitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meitar/subscriptions","organizations_url":"https://api.github.com/users/meitar/orgs","repos_url":"https://api.github.com/users/meitar/repos","events_url":"https://api.github.com/users/meitar/events{/privacy}","received_events_url":"https://api.github.com/users/meitar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-09T00:04:55Z","updated_at":"2016-01-13T19:13:23Z","closed_at":"2016-01-13T19:13:23Z","body":"* WordPress version: 4.4.1\r\n* GeoIP Detect version: 2.5.4\r\n\r\n# Description\r\n\r\nDespite dismissing the \"GeoIP Detection: No database installed\" admin notice as an administrator user (i.e., requesting that the notice not be displayed again), when I logged into the site in which the plugin was installed as a user assigned the `Subscriber` role, the same admin notice reappeared.\r\n\r\n# Steps to reproduce\r\n\r\n1. Install GeoIP Detection plugin as a user assigned the `Administrator` role.\r\n1. After installation, click the textual \"Dismiss\" link at the top-right of the \"No database installed\" admin notice that appears.\r\n1. Log out of WordPress and log back into WordPress as a user assigned the `Subscriber` role.\r\n1. Observe the \"No database installed\" admin notice has reappeared.\r\n\r\n# Expected results\r\n\r\nI expected that this particular admin notice never appear for a Subscriber because they do not have a relevant role in managing the GeoIP database for the site.\r\n\r\nBarring that, I expected that clicking the \"Dismiss\" link in the admin notice would prevent the notice from being shown again regardless of the currently logged-in user.\r\n\r\n# Actual results\r\n\r\nLogging into other user accounts, apparently regardless of the capabilities those user accounts have, display the admin notice again."}}