From 56fa065b77bac5960e53ae81e6cab3926c4ec419 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Sun, 22 Nov 2026 21:12:18 +0300 Subject: [PATCH] Allow EzDent service session to load recent acquisitions --- Sources/EzServerMac/WebConsoleAPI.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }