aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2019-12-24 20:45:46 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2019-12-24 20:51:52 +0300
commit385356aad0dd7eac0695bb1597ba1e52b5f17b40 (patch)
tree8acb34cdf145fc4823beabf42e5b17ac0cded18f /lib
parent10ce7185c22ffe397329fb554b0a6704bcf2b881 (diff)
downloadpleroma-385356aad0dd7eac0695bb1597ba1e52b5f17b40.tar.gz
fix oauth scopes for AdminApi#reports_update
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/admin_api/admin_api_controller.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/admin_api/admin_api_controller.ex b/lib/pleroma/web/admin_api/admin_api_controller.ex
index c8abeff06..ddae139c6 100644
--- a/lib/pleroma/web/admin_api/admin_api_controller.ex
+++ b/lib/pleroma/web/admin_api/admin_api_controller.ex
@@ -66,7 +66,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
plug(
OAuthScopesPlug,
%{scopes: ["write:reports"], admin: true}
- when action in [:report_update_state, :report_respond]
+ when action in [:reports_update]
)
plug(