From b704440f36ec4cde94959edadbfc710207681d28 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 1 May 2025 08:54:26 +0200 Subject: [PATCH] make write permission check case insensitive --- client/jsFiles/SEAWebClientMain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/jsFiles/SEAWebClientMain.js b/client/jsFiles/SEAWebClientMain.js index 8af34f6..07cf96d 100644 --- a/client/jsFiles/SEAWebClientMain.js +++ b/client/jsFiles/SEAWebClientMain.js @@ -187,10 +187,10 @@ window.onload = function() { let array_icon_edit = document.getElementsByClassName('icon-edit'); let array_button = document.getElementsByClassName('input-element-button'); if (writePermission == false) { - alertify.prompt( 'WRITE PERMISSION', "Please enter the name of the instrument you want to work on." + alertify.prompt( "WRITE PERMISSION", "Current device: "+ window.device + "

Please confirm the instrument:", "" , function(evt, value) { // User decided to proceed - if (clientTitle.includes(value)) { + if (window.instrument.toUpperCase() === value.toUpperCase()) { writePermission = true; icon_lock_container.innerHTML = ''; for(i = 0; i < array_icon_edit.length; i++) {