fix: More dx
This commit is contained in:
parent
c73806760f
commit
9154810a9b
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ defmodule Legendary.AuthWeb.Plugs.RequireAdmin do
|
||||||
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")
|
||||||
do
|
do
|
||||||
|
IO.puts "OK"
|
||||||
conn
|
conn
|
||||||
else
|
else
|
||||||
_ ->
|
_ ->
|
||||||
|
|
Loading…
Reference in a new issue