diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-07-19 21:35:57 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-07-19 21:35:57 +0300 |
commit | cf3f8cb72a46f0c8c798d4022cff442fae4ab401 (patch) | |
tree | 585b45b649a67efae1db0f22114b120d804031e8 /test/web/admin_api/controllers/report_controller_test.exs | |
parent | 5d215fd81f529b639db9096ca71d4e7f0a6ed386 (diff) | |
download | pleroma-cf3f8cb72a46f0c8c798d4022cff442fae4ab401.tar.gz pleroma-cf3f8cb72a46f0c8c798d4022cff442fae4ab401.zip |
[#1940] Reinstated OAuth-less `admin_token` authentication. Refactored UserIsAdminPlug (freed from checking admin scopes presence).
Diffstat (limited to 'test/web/admin_api/controllers/report_controller_test.exs')
-rw-r--r-- | test/web/admin_api/controllers/report_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/admin_api/controllers/report_controller_test.exs b/test/web/admin_api/controllers/report_controller_test.exs index 940bce340..f30dc8956 100644 --- a/test/web/admin_api/controllers/report_controller_test.exs +++ b/test/web/admin_api/controllers/report_controller_test.exs @@ -297,7 +297,7 @@ defmodule Pleroma.Web.AdminAPI.ReportControllerTest do |> get("/api/pleroma/admin/reports") assert json_response(conn, :forbidden) == - %{"error" => "User is not an admin or OAuth admin scope is not granted."} + %{"error" => "User is not an admin."} end test "returns 403 when requested by anonymous" do |