[Nagvis-checkins] SF.net Git: nagvis: Removed old auth controll with allowed_user and allowed_for_c
Brought to you by:
larsi-
From: lars <la...@us...> - 2010-02-28 22:23:31
|
Module: nagvis Branch: master Commit: 67ad95137a0039c403152fb828e9bf18503058df URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=67ad95137a0039c403152fb828e9bf18503058df Author: LaMi <la...@ve...> Date: Sun Feb 28 23:23:15 2010 +0100 Removed old auth controll with allowed_user and allowed_for_config options --- share/frontend/wui/js/addmodify.js | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/share/frontend/wui/js/addmodify.js b/share/frontend/wui/js/addmodify.js index ab7916a..7b343ec 100644 --- a/share/frontend/wui/js/addmodify.js +++ b/share/frontend/wui/js/addmodify.js @@ -123,21 +123,6 @@ function validateMapCfgForm() { y = document.addmodify.elements[i].value; } - if(sName == 'allowed_for_config') { - users_tab = document.addmodify.elements[i].value.split(','); - - suicide = true; - for(var k = 0, len2 = users_tab.length; k < len2; k++) { - if ( (users_tab[k]=='EVERYONE') || (users_tab[k]==username) ) { suicide=false; } - } - - if(suicide) { - alert(printLang(lang['unableToWorkWithMap'],'')); - document.addmodify.elements[i].focus(); - return false; - } - } - if(document.addmodify.elements[i].value != '') { // Print a note to the user: This map object will display the summary state of the current map if(sType == "map" && sName == "map_name" && document.addmodify.elements[i].value == document.addmodify.map.value) { |