supress security checks if accessed from commandline - setting via

res.data.noWeb
This commit is contained in:
stefanp 2004-01-06 15:51:12 +00:00
parent 98ad7be09b
commit 66e35b7704

View file

@ -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")){