feat: all clients to see suncoast permits record
This commit is contained in:
@@ -50,7 +50,7 @@ export async function listOrgs(
|
|||||||
if (user.role === "client") {
|
if (user.role === "client") {
|
||||||
filterObj.push({
|
filterObj.push({
|
||||||
$or: [
|
$or: [
|
||||||
{ type: "county" },
|
{ type: { $in: ["county", "agent"] } },
|
||||||
{
|
{
|
||||||
_id: {
|
_id: {
|
||||||
$in: user.orgId.map((item) => new mongoose.Types.ObjectId(item)),
|
$in: user.orgId.map((item) => new mongoose.Types.ObjectId(item)),
|
||||||
|
|||||||
Reference in New Issue
Block a user