diff --git a/module/reports/helper.js b/module/reports/helper.js index a07f2ec5..c1d4c6b3 100644 --- a/module/reports/helper.js +++ b/module/reports/helper.js @@ -361,12 +361,12 @@ module.exports = class ReportsHelper { } if (userRole != "") { + let regex = userRole.split(","); + regex.push(""); query.userRole = { - $in : [ - "", - ...userRole.split(",") - ] - } + $regex: regex.join("|"), + $options: "i", + }; } let searchQuery = [];