Commit 1a22d507 authored by Marcos Defendi's avatar Marcos Defendi

Add default fields to exclude

parent d82e470a
......@@ -74,7 +74,7 @@ API.v1.addRoute('roles.getUsersInRole', { authRequired: true }, {
limit: count || 50,
sort: { username: 1 },
skip: offset,
fields: API.v1.limitedUserFieldsToExclude,
fields: { ...API.v1.limitedUserFieldsToExclude, ...API.v1.defaultFieldsToExclude },
}).fetch();
return API.v1.success({ users });
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment