add tester role
This commit is contained in:
@@ -59,7 +59,7 @@ export async function getUserByEmail(email: string) {
|
||||
|
||||
export async function listUsers(tenantId: string) {
|
||||
return await userModel
|
||||
.find({ tenantId: tenantId })
|
||||
.find({ $and: [{ tenantId: tenantId }, { role: { $ne: "tester" } }] })
|
||||
.select(
|
||||
"_id pid orgId firstName lastName name email role avatar status createdAt createdBy lastLogin"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user