{"action":"created","issue":{"url":"https://api.github.com/repos/poweradmin/poweradmin/issues/268","repository_url":"https://api.github.com/repos/poweradmin/poweradmin","labels_url":"https://api.github.com/repos/poweradmin/poweradmin/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/poweradmin/poweradmin/issues/268/comments","events_url":"https://api.github.com/repos/poweradmin/poweradmin/issues/268/events","html_url":"https://github.com/poweradmin/poweradmin/pull/268","id":136381898,"number":268,"title":"hide inaccessible zone letters at \"List zones\" page","user":{"login":"alchuk","id":12322967,"avatar_url":"https://avatars.githubusercontent.com/u/12322967?v=3","gravatar_id":"","url":"https://api.github.com/users/alchuk","html_url":"https://github.com/alchuk","followers_url":"https://api.github.com/users/alchuk/followers","following_url":"https://api.github.com/users/alchuk/following{/other_user}","gists_url":"https://api.github.com/users/alchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/alchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchuk/subscriptions","organizations_url":"https://api.github.com/users/alchuk/orgs","repos_url":"https://api.github.com/users/alchuk/repos","events_url":"https://api.github.com/users/alchuk/events{/privacy}","received_events_url":"https://api.github.com/users/alchuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-25T13:00:47Z","updated_at":"2016-02-26T10:42:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/poweradmin/poweradmin/pulls/268","html_url":"https://github.com/poweradmin/poweradmin/pull/268","diff_url":"https://github.com/poweradmin/poweradmin/pull/268.diff","patch_url":"https://github.com/poweradmin/poweradmin/pull/268.patch"},"body":"Since the total number of zones goes above the threshold the alphanumeric paging menu is displayed. This is done using show_letters() function which inserts hrefs for the zone names letters disregarding the fact that current user may not have accessible zones for all of them.\r\n"},"comment":{"url":"https://api.github.com/repos/poweradmin/poweradmin/issues/comments/189214042","html_url":"https://github.com/poweradmin/poweradmin/pull/268#issuecomment-189214042","issue_url":"https://api.github.com/repos/poweradmin/poweradmin/issues/268","id":189214042,"user":{"login":"alchuk","id":12322967,"avatar_url":"https://avatars.githubusercontent.com/u/12322967?v=3","gravatar_id":"","url":"https://api.github.com/users/alchuk","html_url":"https://github.com/alchuk","followers_url":"https://api.github.com/users/alchuk/followers","following_url":"https://api.github.com/users/alchuk/following{/other_user}","gists_url":"https://api.github.com/users/alchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/alchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alchuk/subscriptions","organizations_url":"https://api.github.com/users/alchuk/orgs","repos_url":"https://api.github.com/users/alchuk/repos","events_url":"https://api.github.com/users/alchuk/events{/privacy}","received_events_url":"https://api.github.com/users/alchuk/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T10:42:06Z","updated_at":"2016-02-26T10:42:06Z","body":"@ktims I agree the first fix was a little bit too premature. I reworked my patch thoroughly, made some original code cleanup (got rid of 27 sql requests). New code honours user permissions. I also let ueber user to see all available letters (:\r\nNow it seems to work as it's supposed to."}}