supress security checks if accessed from commandline - setting via
res.data.noWeb
This commit is contained in:
parent
98ad7be09b
commit
66e35b7704
1 changed files with 6 additions and 0 deletions
|
@ -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")){
|
||||
|
|
Loading…
Add table
Reference in a new issue