From e73890f8741d209c275c74703d940990de30bf99 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Tue, 5 Nov 2024 18:22:55 +0500 Subject: [PATCH] bug fix: design window --- CyberCP/secMiddleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CyberCP/secMiddleware.py b/CyberCP/secMiddleware.py index 0b4b89f53..13fd2f366 100755 --- a/CyberCP/secMiddleware.py +++ b/CyberCP/secMiddleware.py @@ -35,7 +35,7 @@ def __call__(self, request): logging.writeToFile(f'Path vs the final url : {pathActual}') logging.writeToFile(FinalURL) - if pathActual == "/base/design" or pathActual == "/backup/localInitiate" or pathActual == '/' or pathActual == '/verifyLogin' or pathActual == '/logout' or pathActual.startswith('/api')\ + if pathActual == "/backup/localInitiate" or pathActual == '/' or pathActual == '/verifyLogin' or pathActual == '/logout' or pathActual.startswith('/api')\ or pathActual.endswith('/webhook') or pathActual.startswith('/cloudAPI') or pathActual.endswith('/gitNotify'): pass else: @@ -160,7 +160,7 @@ def __call__(self, request): 'cloudAPI') > -1 or FinalURL.find( 'verifyLogin') > -1 or FinalURL.find('submitUserCreation') > -1: continue - if key == 'ownerPassword' or key == 'scriptUrl' or key == 'CLAMAV_VIRUS' or key == "Rspamdserver" or key == 'smtpd_milters' \ + if key == 'MainDashboardCSS' or key == 'ownerPassword' or key == 'scriptUrl' or key == 'CLAMAV_VIRUS' or key == "Rspamdserver" or key == 'smtpd_milters' \ or key == 'non_smtpd_milters' or key == 'key' or key == 'cert' or key == 'recordContentAAAA' or key == 'backupDestinations'\ or key == 'ports' \ or key == 'imageByPass' or key == 'passwordByPass' or key == 'PasswordByPass' or key == 'cronCommand' \