{"action":"created","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4342","repository_url":"https://api.github.com/repos/NodeBB/NodeBB","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4342/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4342/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4342/events","html_url":"https://github.com/NodeBB/NodeBB/issues/4342","id":139871865,"number":4342,"title":"How to check if the user is guest or registered?","user":{"login":"Nisthar","id":11994157,"avatar_url":"https://avatars.githubusercontent.com/u/11994157?v=3","gravatar_id":"","url":"https://api.github.com/users/Nisthar","html_url":"https://github.com/Nisthar","followers_url":"https://api.github.com/users/Nisthar/followers","following_url":"https://api.github.com/users/Nisthar/following{/other_user}","gists_url":"https://api.github.com/users/Nisthar/gists{/gist_id}","starred_url":"https://api.github.com/users/Nisthar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nisthar/subscriptions","organizations_url":"https://api.github.com/users/Nisthar/orgs","repos_url":"https://api.github.com/users/Nisthar/repos","events_url":"https://api.github.com/users/Nisthar/events{/privacy}","received_events_url":"https://api.github.com/users/Nisthar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-10T12:25:15Z","updated_at":"2016-03-10T12:52:02Z","closed_at":"2016-03-10T12:36:26Z","body":"How can i check if the visitor is a registered user or a guest ?\r\n\r\nI am looking for server side solution for my plugin :+1:\r\n\r\nI am using the hook \"filter:parse.post\". I tried the code \r\n`var cls = module.parent.require('./middleware/cls');`\r\nBut its giving me error \"module not found\".\r\n\r\nTesting the plugin in 1.0.0 version. But my site is running under 0.9.4 version where i'll be using the plugin."},"comment":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/comments/194829509","html_url":"https://github.com/NodeBB/NodeBB/issues/4342#issuecomment-194829509","issue_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/4342","id":194829509,"user":{"login":"Nisthar","id":11994157,"avatar_url":"https://avatars.githubusercontent.com/u/11994157?v=3","gravatar_id":"","url":"https://api.github.com/users/Nisthar","html_url":"https://github.com/Nisthar","followers_url":"https://api.github.com/users/Nisthar/followers","following_url":"https://api.github.com/users/Nisthar/following{/other_user}","gists_url":"https://api.github.com/users/Nisthar/gists{/gist_id}","starred_url":"https://api.github.com/users/Nisthar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nisthar/subscriptions","organizations_url":"https://api.github.com/users/Nisthar/orgs","repos_url":"https://api.github.com/users/Nisthar/repos","events_url":"https://api.github.com/users/Nisthar/events{/privacy}","received_events_url":"https://api.github.com/users/Nisthar/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T12:52:02Z","updated_at":"2016-03-10T12:52:02Z","body":"@julianlam No. I tried `data.uid`. But its always undefined even if i login or not. (I am using \"filter:parse.post\")"}}