fix: Session diagnostic
This commit is contained in:
parent
3f1d3f40f1
commit
c73806760f
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ defmodule Legendary.AuthWeb.Plugs.RequireAdmin do
|
||||||
IO.puts "XXXXXX"
|
IO.puts "XXXXXX"
|
||||||
IO.inspect( Pow.Plug.current_user(conn))
|
IO.inspect( Pow.Plug.current_user(conn))
|
||||||
IO.puts "XXXXXX"
|
IO.puts "XXXXXX"
|
||||||
IO.inspect(conn |> Plug.Conn.fetch_session() |> Plug.Conn.get_session()
|
IO.inspect(conn |> Plug.Conn.fetch_session() |> Plug.Conn.get_session())
|
||||||
IO.puts "XXXXXX"
|
IO.puts "XXXXXX"
|
||||||
with user = %User{} <- Pow.Plug.current_user(conn),
|
with user = %User{} <- Pow.Plug.current_user(conn),
|
||||||
true <- Roles.has_role?(user, "admin")
|
true <- Roles.has_role?(user, "admin")
|
||||||
|
|
Loading…
Reference in a new issue