fix: disable action buttons for user and candidate login when users are not allowed
This commit is contained in:
+3
-1
@@ -203,7 +203,9 @@ question_db.version(1).stores({
|
|||||||
retrievePacketList();
|
retrievePacketList();
|
||||||
|
|
||||||
if (!allow_users) {
|
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 {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user