From: Haelwenn (lanodan) Monnier Date: Sat, 10 Nov 2018 13:43:22 +0000 (+0100) Subject: lib/pleroma/plugs/user_is_admin_plug.ex: change 403 string to “User is not admin.” X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4a79b89dba9e7d835dddfdf093e644ad2ef60b54;p=akkoma lib/pleroma/plugs/user_is_admin_plug.ex: change 403 string to “User is not admin.” --- diff --git a/lib/pleroma/plugs/user_is_admin_plug.ex b/lib/pleroma/plugs/user_is_admin_plug.ex index bdd057c44..5312f1499 100644 --- a/lib/pleroma/plugs/user_is_admin_plug.ex +++ b/lib/pleroma/plugs/user_is_admin_plug.ex @@ -13,7 +13,7 @@ defmodule Pleroma.Plugs.UserIsAdminPlug do def call(conn, _) do conn |> 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 end end