auth_controller.ex: Add admin scope to MastoFE
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 29 Feb 2020 00:23:36 +0000 (01:23 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 29 Feb 2020 00:25:14 +0000 (01:25 +0100)
Related: https://git.pleroma.social/pleroma/pleroma/issues/1265

lib/pleroma/web/mastodon_api/controllers/auth_controller.ex

index d9e51de7f27757c54d2ea2701669bec692052517..b63d967846f428b023a284005f476a0533d174df 100644 (file)
@@ -86,6 +86,6 @@ defmodule Pleroma.Web.MastodonAPI.AuthController do
   @spec get_or_make_app() :: {:ok, App.t()} | {:error, Ecto.Changeset.t()}
   defp get_or_make_app do
     %{client_name: @local_mastodon_name, redirect_uris: "."}
-    |> App.get_or_make(["read", "write", "follow", "push"])
+    |> App.get_or_make(["read", "write", "follow", "push", "admin"])
   end
 end