From db04550e1aa872878855b048623fb947ebca9c6f Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 19 Jan 2026 11:37:25 +0000 Subject: [PATCH] fix: disable action buttons for user and candidate login when users are not allowed --- js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index e95e81f..b47a24a 100644 --- a/js/main.js +++ b/js/main.js @@ -203,7 +203,9 @@ question_db.version(1).stores({ retrievePacketList(); if (!allow_users) { - $("#user-details").hide() + // Keep the user/candidate details visible, but disable action buttons + $("#btn-user-login").prop("disabled", true).attr("title", "User login disabled"); + $("#btn-candidate-login").prop("disabled", true).attr("title", "Candidate entry disabled"); } try {