{"action":"created","issue":{"url":"https://api.github.com/repos/infinitered/thesis-phoenix/issues/21","repository_url":"https://api.github.com/repos/infinitered/thesis-phoenix","labels_url":"https://api.github.com/repos/infinitered/thesis-phoenix/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/infinitered/thesis-phoenix/issues/21/comments","events_url":"https://api.github.com/repos/infinitered/thesis-phoenix/issues/21/events","html_url":"https://github.com/infinitered/thesis-phoenix/issues/21","id":164255313,"number":21,"title":"Issue when saving","user":{"login":"yulianglukhenko","id":1775841,"avatar_url":"https://avatars.githubusercontent.com/u/1775841?v=3","gravatar_id":"","url":"https://api.github.com/users/yulianglukhenko","html_url":"https://github.com/yulianglukhenko","followers_url":"https://api.github.com/users/yulianglukhenko/followers","following_url":"https://api.github.com/users/yulianglukhenko/following{/other_user}","gists_url":"https://api.github.com/users/yulianglukhenko/gists{/gist_id}","starred_url":"https://api.github.com/users/yulianglukhenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulianglukhenko/subscriptions","organizations_url":"https://api.github.com/users/yulianglukhenko/orgs","repos_url":"https://api.github.com/users/yulianglukhenko/repos","events_url":"https://api.github.com/users/yulianglukhenko/events{/privacy}","received_events_url":"https://api.github.com/users/yulianglukhenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-07T08:26:43Z","updated_at":"2016-07-07T08:29:44Z","closed_at":null,"body":"Env: dev\r\nVersion: 0.0.15\r\n\r\nThis is the ThesisAuth module:\r\n\r\n```\r\ndefmodule IcityMortgage.ThesisAuth do\r\n  @moduledoc \"\"\"\r\n  Contains functions for handling Thesis authorization.\r\n  \"\"\"\r\n\r\n  def page_is_editable?(conn) do\r\n    user = Guardian.Plug.current_resource(conn)\r\n    IO.inspect user\r\n    IO.inspect user.role\r\n    IO.inspect user && user.role == :admin\r\n    user && user.role == :admin\r\n  end\r\nend\r\n```\r\n\r\nThesis editor is visible after logging in = great: \r\n\r\n![](http://d.pr/i/1f5YK+)\r\n\r\nAfter editing a content area and saving, I get an error:\r\n\r\n![](http://d.pr/i/14TGe+)\r\n\r\nAs you can see, inspect for user returns `nil`. Does the session not get passed into the Thesis scope? \r\n\r\n@ryanlntn @jamonholmgren "},"comment":{"url":"https://api.github.com/repos/infinitered/thesis-phoenix/issues/comments/231015533","html_url":"https://github.com/infinitered/thesis-phoenix/issues/21#issuecomment-231015533","issue_url":"https://api.github.com/repos/infinitered/thesis-phoenix/issues/21","id":231015533,"user":{"login":"yulianglukhenko","id":1775841,"avatar_url":"https://avatars.githubusercontent.com/u/1775841?v=3","gravatar_id":"","url":"https://api.github.com/users/yulianglukhenko","html_url":"https://github.com/yulianglukhenko","followers_url":"https://api.github.com/users/yulianglukhenko/followers","following_url":"https://api.github.com/users/yulianglukhenko/following{/other_user}","gists_url":"https://api.github.com/users/yulianglukhenko/gists{/gist_id}","starred_url":"https://api.github.com/users/yulianglukhenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulianglukhenko/subscriptions","organizations_url":"https://api.github.com/users/yulianglukhenko/orgs","repos_url":"https://api.github.com/users/yulianglukhenko/repos","events_url":"https://api.github.com/users/yulianglukhenko/events{/privacy}","received_events_url":"https://api.github.com/users/yulianglukhenko/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T08:29:44Z","updated_at":"2016-07-07T08:29:44Z","body":"More info: heres what the application router pipelines look like: ![](http://d.pr/i/vOFF+)"}}
{"actor":{"display_login":"yulianglukhenko"}}