{"action":"closed","issue":{"url":"https://api.github.com/repos/YosaiProject/yosai_alchemystore/issues/2","repository_url":"https://api.github.com/repos/YosaiProject/yosai_alchemystore","labels_url":"https://api.github.com/repos/YosaiProject/yosai_alchemystore/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/YosaiProject/yosai_alchemystore/issues/2/comments","events_url":"https://api.github.com/repos/YosaiProject/yosai_alchemystore/issues/2/events","html_url":"https://github.com/YosaiProject/yosai_alchemystore/issues/2","id":147200169,"number":2,"title":"Is logged in (decorator or function?)","user":{"login":"Woolworths","id":6524227,"avatar_url":"https://avatars.githubusercontent.com/u/6524227?v=3","gravatar_id":"","url":"https://api.github.com/users/Woolworths","html_url":"https://github.com/Woolworths","followers_url":"https://api.github.com/users/Woolworths/followers","following_url":"https://api.github.com/users/Woolworths/following{/other_user}","gists_url":"https://api.github.com/users/Woolworths/gists{/gist_id}","starred_url":"https://api.github.com/users/Woolworths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Woolworths/subscriptions","organizations_url":"https://api.github.com/users/Woolworths/orgs","repos_url":"https://api.github.com/users/Woolworths/repos","events_url":"https://api.github.com/users/Woolworths/events{/privacy}","received_events_url":"https://api.github.com/users/Woolworths/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-10T06:45:16Z","updated_at":"2016-04-10T12:05:57Z","closed_at":"2016-04-10T12:05:57Z","body":"How would I make a function protected to only logged in users?\r\n`def protected():  \r\n    if logged_in:\r\n`\r\nor \r\n`@logged_in  \r\ndef protected():  \r\n    pass\r\n`"}}