[#1940] Reinstated OAuth-less `admin_token` authentication. Refactored UserIsAdminPlu...
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 19 Jul 2020 18:35:57 +0000 (21:35 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 19 Jul 2020 18:35:57 +0000 (21:35 +0300)
commitcf3f8cb72a46f0c8c798d4022cff442fae4ab401
tree585b45b649a67efae1db0f22114b120d804031e8
parent5d215fd81f529b639db9096ca71d4e7f0a6ed386
[#1940] Reinstated OAuth-less `admin_token` authentication. Refactored UserIsAdminPlug (freed from checking admin scopes presence).
lib/pleroma/plugs/admin_secret_authentication_plug.ex
lib/pleroma/plugs/user_is_admin_plug.ex
priv/gettext/errors.pot
priv/gettext/it/LC_MESSAGES/errors.po
priv/gettext/nl/LC_MESSAGES/errors.po
priv/gettext/pl/LC_MESSAGES/errors.po
test/plugs/admin_secret_authentication_plug_test.exs
test/plugs/user_is_admin_plug_test.exs
test/web/admin_api/controllers/admin_api_controller_test.exs
test/web/admin_api/controllers/report_controller_test.exs