Skip to content

Commit

Permalink
Add is_active as a default searchParam to get user list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jooong committed May 26, 2021
1 parent d537482 commit 71b4d94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cvat-core/src/api-implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
cvat.users.get.implementation = async (filter) => {
checkFilter(filter, {
id: isInteger,
is_active: isBoolean,
self: isBoolean,
search: isString,
limit: isInteger,
Expand All @@ -125,7 +126,10 @@
users = await serverProxy.users.self();
users = [users];
} else {
const searchParams = {};
// get list of active users as default
const searchParams = {
'is_active': true,
};
for (const key in filter) {
if (filter[key] && key !== 'self') {
searchParams[key] = filter[key];
Expand Down

0 comments on commit 71b4d94

Please sign in to comment.