diff --git a/Sources/EzServerMac/WebConsoleAPI.swift b/Sources/EzServerMac/WebConsoleAPI.swift index 5607441..945603f 100644 --- a/Sources/EzServerMac/WebConsoleAPI.swift +++ b/Sources/EzServerMac/WebConsoleAPI.swift @@ -90,7 +90,9 @@ final class WebConsoleAPI { let session = sessions[String(authorization.dropFirst(7))], session.expiry > now else { return Reply(["errorMessage": "Auth token has expired"], status: "401 Unauthorized", errorCode: -8001511) } - guard session.administrator || (method == "GET" && isBootstrapRead(path)) else { + let applicationBootstrap = (method == "GET" && isBootstrapRead(path)) + || (method == "POST" && path == ["e2ds", "patientsbynumlistforrecentlyacquired"]) + guard session.administrator || applicationBootstrap else { return Reply(["errorMessage": "Administrator login required"], status: "403 Forbidden", errorCode: -1013) }