{"action":"created","issue":{"url":"https://api.github.com/repos/biocore/qiita/issues/745","labels_url":"https://api.github.com/repos/biocore/qiita/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/biocore/qiita/issues/745/comments","events_url":"https://api.github.com/repos/biocore/qiita/issues/745/events","html_url":"https://github.com/biocore/qiita/pull/745","id":52775148,"number":745,"title":"Return user object with self.current_user","user":{"login":"squirrelo","id":3079066,"avatar_url":"https://avatars.githubusercontent.com/u/3079066?v=3","gravatar_id":"","url":"https://api.github.com/users/squirrelo","html_url":"https://github.com/squirrelo","followers_url":"https://api.github.com/users/squirrelo/followers","following_url":"https://api.github.com/users/squirrelo/following{/other_user}","gists_url":"https://api.github.com/users/squirrelo/gists{/gist_id}","starred_url":"https://api.github.com/users/squirrelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squirrelo/subscriptions","organizations_url":"https://api.github.com/users/squirrelo/orgs","repos_url":"https://api.github.com/users/squirrelo/repos","events_url":"https://api.github.com/users/squirrelo/events{/privacy}","received_events_url":"https://api.github.com/users/squirrelo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2014-12-23T21:11:48Z","updated_at":"2015-02-03T23:00:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/biocore/qiita/pulls/745","html_url":"https://github.com/biocore/qiita/pull/745","diff_url":"https://github.com/biocore/qiita/pull/745.diff","patch_url":"https://github.com/biocore/qiita/pull/745.patch"},"body":"This cleans up the codebase by returning a user object for self.current_user instead of just the email. Almost every instance of the call was just instantiating a user object anyway, so this makes that boilerplate. It also allows the base template to automatically get user info and level for rendering."},"comment":{"url":"https://api.github.com/repos/biocore/qiita/issues/comments/72754791","html_url":"https://github.com/biocore/qiita/pull/745#issuecomment-72754791","issue_url":"https://api.github.com/repos/biocore/qiita/issues/745","id":72754791,"user":{"login":"squirrelo","id":3079066,"avatar_url":"https://avatars.githubusercontent.com/u/3079066?v=3","gravatar_id":"","url":"https://api.github.com/users/squirrelo","html_url":"https://github.com/squirrelo","followers_url":"https://api.github.com/users/squirrelo/followers","following_url":"https://api.github.com/users/squirrelo/following{/other_user}","gists_url":"https://api.github.com/users/squirrelo/gists{/gist_id}","starred_url":"https://api.github.com/users/squirrelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squirrelo/subscriptions","organizations_url":"https://api.github.com/users/squirrelo/orgs","repos_url":"https://api.github.com/users/squirrelo/repos","events_url":"https://api.github.com/users/squirrelo/events{/privacy}","received_events_url":"https://api.github.com/users/squirrelo/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T23:00:15Z","updated_at":"2015-02-03T23:00:15Z","body":"It's safe as long as when you do 'if user:` it acts as true when the user is logged in and false when not, which this does."}}