Merged PR 2315: Auth stabilistatiion and hardening

Related work items: #23020
This commit is contained in:
Robert Bond
2026-05-14 08:55:49 +00:00
parent d295a507ac
commit d0b2fd077a
41 changed files with 1462 additions and 418 deletions
@@ -156,10 +156,10 @@ export default async function ApiProxy(req, res) {
queryUrl =
"pinswg_sipses?$count=true&$expand=pinswg_sipscase&$filter=_pinswg_projecttype_value eq " +
searchString.projecttype +
(searchString.hasOwnProperty("q")
(Object.prototype.hasOwnProperty.call(searchString, "q")
? " and contains(pinswg_projectname, '" + searchString.q + "')"
: "") +
(searchString.hasOwnProperty("lpa")
(Object.prototype.hasOwnProperty.call(searchString, "lpa")
? " and _pinswg_associatedlpa_value eq " +
searchString.lpa +
" "
+1 -1
View File
@@ -162,7 +162,7 @@ export default async function ApiProxy(req, res) {
"@odata.count": coordsObj["@odata.count"]
};
return req.query.hasOwnProperty("fordmw")
return Object.prototype.hasOwnProperty.call(req.query, "fordmw")
? respondSuccess(res, updatedData)
: respondSuccess(res, coordsObj);
} catch (error) {