add blocked filter in users list to filter banned users

fixes #2914
This commit is contained in:
Rigel Kent 2020-07-02 22:49:51 +02:00
parent 2b587cad93
commit 8491293b02
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F
11 changed files with 213 additions and 32 deletions

View file

@ -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)