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),
|
||||
true <- Roles.has_role?(user, "admin")
|
||||
do
|
||||
IO.puts "OK"
|
||||
conn
|
||||
else
|
||||
_ ->
|
||||
|
|
Loading…
Reference in a new issue