From: Eric Bollengier Date: Mon, 5 Nov 2007 21:06:59 +0000 (+0000) Subject: ebl Add production profile X-Git-Tag: Release-3.0.0~2290 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=37de853986920c966dbf9efe4e92c9e8c960b460;p=bacula%2Fbacula ebl Add production profile git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5859 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/tpl/display_user.tpl b/gui/bweb/tpl/display_user.tpl index 5702a13dea..c31c4cc08b 100644 --- a/gui/bweb/tpl/display_user.tpl +++ b/gui/bweb/tpl/display_user.tpl @@ -80,11 +80,21 @@ function set_role(val) for (var i=0; i < document.form1.rolename.length; ++i) { document.form1.rolename[i].selected = true; } + else if (val == "production") { + for (var i=0; i < document.form1.rolename.length; ++i) { + if (document.form1.rolename[i].value != 'r_configure' && + document.form1.rolename[i].value != 'r_user_mgnt' && + document.form1.rolename[i].value != 'r_group_mgnt' + ) + { + document.form1.rolename[i].selected = true; + } + } } else if (val == "customer") { for (var i=0; i < document.form1.rolename.length; ++i) { - if (document.form1.rolename[i].value == 'view_stats' || - document.form1.rolename[i].value == 'view_history' || - document.form1.rolename[i].value == 'view_log' + if (document.form1.rolename[i].value == 'r_view_stats' || + document.form1.rolename[i].value == 'r_view_history' || + document.form1.rolename[i].value == 'r_view_log' ) { document.form1.rolename[i].selected = true;