feat: allow users to have access to multiple oorgs
This commit is contained in:
@@ -152,7 +152,11 @@ export async function listNotifications(
|
||||
});
|
||||
|
||||
if (user.role == "client") {
|
||||
filterObj.push({ client: new mongoose.Types.ObjectId(user.orgId) });
|
||||
filterObj.push({
|
||||
client: {
|
||||
$in: user.orgId.map((item) => new mongoose.Types.ObjectId(item)),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
let { taggedFilter, taggedUserFilterIndex } = getTaggedUsersFilter(
|
||||
|
||||
Reference in New Issue
Block a user