mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
lib/pleroma/plugs/user_is_admin_plug.ex: change 403 string to “User is not admin.”
This commit is contained in:
parent
f9d05902fe
commit
4a79b89dba
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ defmodule Pleroma.Plugs.UserIsAdminPlug do
|
||||||
def call(conn, _) do
|
def call(conn, _) do
|
||||||
conn
|
conn
|
||||||
|> put_resp_content_type("application/json")
|
|> put_resp_content_type("application/json")
|
||||||
|> send_resp(403, Jason.encode!(%{error: "Not admin."}))
|
|> send_resp(403, Jason.encode!(%{error: "User is not admin."}))
|
||||||
|> halt
|
|> halt
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue