Moderators: reorganize :admin_api pipeline in Router
This commit is contained in:
parent
9bc1e79c56
commit
1f093cb216
2 changed files with 9 additions and 5 deletions
|
|
@ -305,7 +305,7 @@ defmodule Pleroma.Web.AdminAPI.ReportControllerTest do
|
|||
|> get("/api/pleroma/admin/reports")
|
||||
|
||||
assert json_response(conn, :forbidden) ==
|
||||
%{"error" => "User is not an admin."}
|
||||
%{"error" => "User is not a staff member."}
|
||||
end
|
||||
|
||||
test "returns 403 when requested by anonymous" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue