Skip to content

Commit

Permalink
Merge pull request #13 from inferno-community/FI-1160-fix-BDE-03-afte…
Browse files Browse the repository at this point in the history
…r-rebase

FI-1160: fix BDE-03
  • Loading branch information
arscan authored Mar 9, 2021
2 parents 3b44c6c + b59e7e5 commit ac0eaa9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:9
FROM node:12

WORKDIR /app

Expand Down
Binary file modified database.r4.db
Binary file not shown.
4 changes: 3 additions & 1 deletion lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ function checkAuth(req, res, next)
// checkAuth middleware (which excludes routes like /metadata).
// Unless the request has 'sim' data attached to it, then pay attention to the
// 'secure' flag.
if (!req.sim || req.sim.secure) {
// if sim.secure is undefined or null or anything else, assume auth is still required
let authIsRequired = !req.sim || req.sim.secure !== false;
if (authIsRequired) {
return operationOutcome(
res,
"Authentication is required",
Expand Down

0 comments on commit ac0eaa9

Please sign in to comment.