Merged PR 2315: Auth stabilistatiion and hardening
Related work items: #23020
This commit is contained in:
@@ -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 +
|
||||
" "
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user