{"action":"closed","issue":{"url":"https://api.github.com/repos/nfarina/homebridge/issues/1389","repository_url":"https://api.github.com/repos/nfarina/homebridge","labels_url":"https://api.github.com/repos/nfarina/homebridge/issues/1389/labels{/name}","comments_url":"https://api.github.com/repos/nfarina/homebridge/issues/1389/comments","events_url":"https://api.github.com/repos/nfarina/homebridge/issues/1389/events","html_url":"https://github.com/nfarina/homebridge/issues/1389","id":242945188,"node_id":"MDU6SXNzdWUyNDI5NDUxODg=","number":1389,"title":"AdministratorOnlyAccess","user":{"login":"ebaauw","id":22179355,"node_id":"MDQ6VXNlcjIyMTc5MzU1","avatar_url":"https://avatars0.githubusercontent.com/u/22179355?v=4","gravatar_id":"","url":"https://api.github.com/users/ebaauw","html_url":"https://github.com/ebaauw","followers_url":"https://api.github.com/users/ebaauw/followers","following_url":"https://api.github.com/users/ebaauw/following{/other_user}","gists_url":"https://api.github.com/users/ebaauw/gists{/gist_id}","starred_url":"https://api.github.com/users/ebaauw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebaauw/subscriptions","organizations_url":"https://api.github.com/users/ebaauw/orgs","repos_url":"https://api.github.com/users/ebaauw/repos","events_url":"https://api.github.com/users/ebaauw/events{/privacy}","received_events_url":"https://api.github.com/users/ebaauw/received_events","type":"User","site_admin":false},"labels":[{"id":736625506,"node_id":"MDU6TGFiZWw3MzY2MjU1MDY=","url":"https://api.github.com/repos/nfarina/homebridge/labels/stale","name":"stale","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-14T09:30:56Z","updated_at":"2018-07-23T21:38:57Z","closed_at":"2018-07-23T21:38:57Z","author_association":"CONTRIBUTOR","body":"Has any-one used the `AdministratorOnlyAccess` characteristic in their plugin?\r\n\r\nI understand the characteristic isn't supposed to do anything by itself - the accessory needs to implement the restrictions (see https://stackoverflow.com/questions/32742645/set-custom-permission-to-guest-user-for-accessory-in-homekit).  I would like to implement this for my plugin, but I don't understand how that's done.  In particular:\r\n1. How would a plugin determine whether a characteristic change comes from an admin or non-admin user?\r\n2. How would a plugin report back that this change is not allowed for a non-admin user, so that HomeKit can return an `HMErrorCodeInsufficientPrivileges` to the HomeKit app?"}}
{"actor":{"display_login":"stale"}}