Skip to content

Commit

Permalink
update check to find permission
Browse files Browse the repository at this point in the history
  • Loading branch information
eesa456 committed Jun 13, 2024
1 parent a6d1863 commit 7465032
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
for (var i = 0; i < permissionLines.length; i++) {
var permissionLine = permissionLines[i];
if (permissionLine && permissionLine.trim().length !== 0) {
if (permissionLine.trim() == "allow-all-pointer-types"){
hasSkipAuthLookup = true;
}
permissions.push(permissionLine);
}
}
Expand Down Expand Up @@ -76,8 +73,8 @@
// Convert it into a complex object
var lines = nrlPointerTypes.split(/\s+/);

for (var x = 0; x < lines.length; x++) {
var line = lines[x];
for (var i = 0; i < lines.length; i++) {
var line = lines[i];
if (line && line.trim().length !== 0) {
pointerTypes.push(line);
}
Expand All @@ -99,4 +96,4 @@

context.targetRequest.headers["NHSD-Connection-Metadata"] =
connectionMetadata;
})();
})();

0 comments on commit 7465032

Please sign in to comment.