OAuthScopesPlug: remove transform_scopes in favor of explicit admin scope definitions
authorrinpatch <rin@patch.cx>
Wed, 17 Feb 2021 18:37:23 +0000 (21:37 +0300)
committerrinpatch <rin@patch.cx>
Wed, 17 Feb 2021 18:37:23 +0000 (21:37 +0300)
commit2ab9499258ee4abe92dd89dfe8ebaf0a7dad7564
tree36eb248552c51c1bd234966b65b2aa9a855772cd
parent95a22c1cc27428434e566da47f3a2c04c9bf8fd5
OAuthScopesPlug: remove transform_scopes in favor of explicit admin scope definitions

Transforming scopes is no longer necessary since we are dropping
support for accessing admin api without `admin:` prefix in scopes.
16 files changed:
lib/pleroma/config.ex
lib/pleroma/web/admin_api/controllers/admin_api_controller.ex
lib/pleroma/web/admin_api/controllers/chat_controller.ex
lib/pleroma/web/admin_api/controllers/config_controller.ex
lib/pleroma/web/admin_api/controllers/frontend_controller.ex
lib/pleroma/web/admin_api/controllers/instance_document_controller.ex
lib/pleroma/web/admin_api/controllers/invite_controller.ex
lib/pleroma/web/admin_api/controllers/media_proxy_cache_controller.ex
lib/pleroma/web/admin_api/controllers/o_auth_app_controller.ex
lib/pleroma/web/admin_api/controllers/relay_controller.ex
lib/pleroma/web/admin_api/controllers/report_controller.ex
lib/pleroma/web/admin_api/controllers/status_controller.ex
lib/pleroma/web/admin_api/controllers/user_controller.ex
lib/pleroma/web/pleroma_api/controllers/emoji_file_controller.ex
lib/pleroma/web/pleroma_api/controllers/emoji_pack_controller.ex
lib/pleroma/web/plugs/o_auth_scopes_plug.ex