diff options
author | Tusooa Zhu <tusooa@kazv.moe> | 2022-08-09 00:34:04 -0400 |
---|---|---|
committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-08-09 00:34:04 -0400 |
commit | a7f01ffc1d0795f65b34b6dd9337d665f27edff9 (patch) | |
tree | a4364533afa90e77dbec64418de94aa69fad0dc5 /lib | |
parent | b2ba307f4dc7047ae2b21e2078ba741e2da11cdf (diff) | |
download | pleroma-a7f01ffc1d0795f65b34b6dd9337d665f27edff9.tar.gz |
Make backups require its own scope
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/pleroma_api/controllers/backup_controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/pleroma_api/controllers/backup_controller.ex b/lib/pleroma/web/pleroma_api/controllers/backup_controller.ex index 1a0548295..b9daed22b 100644 --- a/lib/pleroma/web/pleroma_api/controllers/backup_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/backup_controller.ex @@ -9,7 +9,7 @@ defmodule Pleroma.Web.PleromaAPI.BackupController do alias Pleroma.Web.Plugs.OAuthScopesPlug action_fallback(Pleroma.Web.MastodonAPI.FallbackController) - plug(OAuthScopesPlug, %{scopes: ["read:accounts"]} when action in [:index, :create]) + plug(OAuthScopesPlug, %{scopes: ["read:backups"]} when action in [:index, :create]) plug(Pleroma.Web.ApiSpec.CastAndValidate) defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.PleromaBackupOperation |