Browse Source

auth_controller.ex: Add admin scope to MastoFE

Related: https://git.pleroma.social/pleroma/pleroma/issues/1265
tags/v2.0.1^2
Haelwenn (lanodan) Monnier rinpatch 4 years ago
parent
commit
3f54215219
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/pleroma/web/mastodon_api/controllers/auth_controller.ex

+ 1
- 1
lib/pleroma/web/mastodon_api/controllers/auth_controller.ex View 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

Loading…
Cancel
Save