From 66e35b77046f63ca5377eba9269bce8e384683bd Mon Sep 17 00:00:00 2001 From: stefanp Date: Tue, 6 Jan 2004 15:51:12 +0000 Subject: [PATCH] supress security checks if accessed from commandline - setting via res.data.noWeb --- Global/functions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Global/functions.js b/Global/functions.js index 86db57d5..4d3740bb 100644 --- a/Global/functions.js +++ b/Global/functions.js @@ -107,6 +107,9 @@ function sortProps(a,b) { * @arg appObj application object to check against (if adminUsername etc are set in app.properties) */ function checkAuth(appObj) { + if (res && res.data.noWeb==true) { + return true; + } var ok = false; // check against root @@ -142,6 +145,9 @@ function checkAuth(appObj) { * check access to the manage-app by ip-addresses */ function checkAddress() { + if (res && res.data.noWeb==true) { + return true; + } // if allowadmin value in server.properties has changed, // re-construct the addressFilter if (app.data.addressString != root.getProperty ("allowadmin")){