Merge branch 'develop' into openapi/admin/relay
authorEgor Kislitsyn <egor@kislitsyn.com>
Thu, 4 Jun 2020 09:30:14 +0000 (13:30 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Thu, 4 Jun 2020 09:30:14 +0000 (13:30 +0400)
1  2 
lib/pleroma/web/admin_api/controllers/admin_api_controller.ex
lib/pleroma/web/router.ex
test/web/admin_api/controllers/admin_api_controller_test.exs

index 0c30b106c9e2d8890248469c457d997637bda375,467d05375e3e98c53510f5c492bfdddb69b22d07..b7fcd4bbf12380da294d11f9ef85d3782c993cdb
@@@ -19,7 -17,7 +17,6 @@@ defmodule Pleroma.Web.AdminAPI.AdminAPI
    alias Pleroma.Web.ActivityPub.ActivityPub
    alias Pleroma.Web.ActivityPub.Builder
    alias Pleroma.Web.ActivityPub.Pipeline
-   alias Pleroma.Web.ActivityPub.Utils
 -  alias Pleroma.Web.ActivityPub.Relay
    alias Pleroma.Web.AdminAPI
    alias Pleroma.Web.AdminAPI.AccountView
    alias Pleroma.Web.AdminAPI.ConfigView
    plug(
      OAuthScopesPlug,
      %{scopes: ["write:follows"], admin: true}
 -    when action in [:user_follow, :user_unfollow, :relay_follow, :relay_unfollow]
 +    when action in [:user_follow, :user_unfollow]
    )
  
-   plug(
-     OAuthScopesPlug,
-     %{scopes: ["read:reports"], admin: true}
-     when action in [:list_reports, :report_show]
-   )
-   plug(
-     OAuthScopesPlug,
-     %{scopes: ["write:reports"], admin: true}
-     when action in [:reports_update, :report_notes_create, :report_notes_delete]
-   )
    plug(
      OAuthScopesPlug,
      %{scopes: ["read:statuses"], admin: true}
Simple merge