Allow EzDent service session to load recent acquisitions

This commit is contained in:
SantaSpeen committed 2026-11-22 21:12:18 +03:00
1 parent aeefb0f7f0
commit 56fa065b77
1 file changed
+3 -1
+3 -1
View File
@@ -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)
}