aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-02-29 01:23:36 +0100
committerrinpatch <rinpatch@sdf.org>2020-03-15 17:00:41 +0300
commit3f54215219a03367d29e47527a2a6eefe59a89d7 (patch)
tree73a99cbb78b859b4e94fc5295c91f3f4c2b9c3a6
parentf9c43a4d9d407ed0e48bd7bbc843c57ab2dbddeb (diff)
downloadpleroma-3f54215219a03367d29e47527a2a6eefe59a89d7.tar.gz
auth_controller.ex: Add admin scope to MastoFE
Related: https://git.pleroma.social/pleroma/pleroma/issues/1265
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/auth_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex b/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
index f165c9965..37b389382 100644
--- a/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/auth_controller.ex
@@ -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