From 8491293b02ed2ec53eb0fa128161ea0b08d3def9 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 2 Jul 2020 22:49:51 +0200 Subject: add blocked filter in users list to filter banned users fixes #2914 --- shared/extra-utils/users/users.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'shared/extra-utils') diff --git a/shared/extra-utils/users/users.ts b/shared/extra-utils/users/users.ts index 08b7743a6..9f193680d 100644 --- a/shared/extra-utils/users/users.ts +++ b/shared/extra-utils/users/users.ts @@ -164,14 +164,23 @@ function getUsersList (url: string, accessToken: string) { .expect('Content-Type', /json/) } -function getUsersListPaginationAndSort (url: string, accessToken: string, start: number, count: number, sort: string, search?: string) { +function getUsersListPaginationAndSort ( + url: string, + accessToken: string, + start: number, + count: number, + sort: string, + search?: string, + blocked?: boolean +) { const path = '/api/v1/users' const query = { start, count, sort, - search + search, + blocked } return request(url) -- cgit v1.2.3