Merge branch 'feature/mastofe-admin-scope' into 'develop'
authorrinpatch <rinpatch@sdf.org>
Fri, 13 Mar 2020 18:58:52 +0000 (18:58 +0000)
committerrinpatch <rinpatch@sdf.org>
Fri, 13 Mar 2020 18:58:52 +0000 (18:58 +0000)
auth_controller.ex: Add admin scope to MastoFE

See merge request pleroma/pleroma!2256

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

index f165c9965c1d2b8f55b591adcee08fa4df4c4bd4,b63d967846f428b023a284005f476a0533d174df..37b38938241109b36741cee67fb835958b01dcfa
@@@ -1,5 -1,5 +1,5 @@@
  # Pleroma: A lightweight social networking server
 -# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
 +# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
  # SPDX-License-Identifier: AGPL-3.0-only
  
  defmodule Pleroma.Web.MastodonAPI.AuthController do
@@@ -86,6 -86,6 +86,6 @@@
    @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