lib/pleroma/plugs/user_is_admin_plug.ex: change 403 string to “User is not admin.”
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 10 Nov 2018 13:43:22 +0000 (14:43 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 17 Nov 2018 19:25:56 +0000 (20:25 +0100)
lib/pleroma/plugs/user_is_admin_plug.ex

index bdd057c44b4c6ff2fa331c4a6569706ff9bd2db3..5312f1499c103e36b5f8de2e223e07146391c684 100644 (file)
@@ -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