Update the error message for the RequireAdmin Plug.
This commit is contained in:
@@ -13,7 +13,7 @@ defmodule DecentralisedBookIndexWeb.Plugs.RequireAdmin do
|
||||
conn
|
||||
else
|
||||
conn
|
||||
|> put_flash(:error, "Unauthorized")
|
||||
|> put_flash(:error, "Unauthorized!")
|
||||
|> redirect(to: "/")
|
||||
|> halt()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user