{"action":"closed","issue":{"url":"https://api.github.com/repos/w3c/push-api/issues/136","labels_url":"https://api.github.com/repos/w3c/push-api/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/w3c/push-api/issues/136/comments","events_url":"https://api.github.com/repos/w3c/push-api/issues/136/events","html_url":"https://github.com/w3c/push-api/issues/136","id":69161645,"number":136,"title":"Rename hasPermission","user":{"login":"mvano","id":5739872,"avatar_url":"https://avatars.githubusercontent.com/u/5739872?v=3","gravatar_id":"","url":"https://api.github.com/users/mvano","html_url":"https://github.com/mvano","followers_url":"https://api.github.com/users/mvano/followers","following_url":"https://api.github.com/users/mvano/following{/other_user}","gists_url":"https://api.github.com/users/mvano/gists{/gist_id}","starred_url":"https://api.github.com/users/mvano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvano/subscriptions","organizations_url":"https://api.github.com/users/mvano/orgs","repos_url":"https://api.github.com/users/mvano/repos","events_url":"https://api.github.com/users/mvano/events{/privacy}","received_events_url":"https://api.github.com/users/mvano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-04-17T15:32:06Z","updated_at":"2015-04-22T17:16:13Z","closed_at":"2015-04-22T17:16:13Z","body":"The promise for `hasPermission` is resolved with an enum, not a boolean. This seems slightly inconsistent,  `hasPermission` suggests a boolean.\r\n\r\nI suggest we rename it to `getPermission`.\r\n\r\n@annevk suggested renaming it to `permission` as that's what the Notifications API facility is called. But in the Notifications API it is a property, not a method, and method names should really be verbs. Anne, what do you think?\r\n\r\nCC @beverloo"}}