From de6f62081fc2db89829fa5cbd04946f9e07adf45 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 2 Nov 2007 10:21:04 +0000 Subject: [PATCH] ebl first cup of user managment git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5829 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/lang/es/tpl/config_edit.tpl | 2 ++ gui/bweb/lang/es/tpl/config_view.tpl | 1 + gui/bweb/lang/fr/tpl/config_edit.tpl | 2 ++ gui/bweb/lang/fr/tpl/config_view.tpl | 1 + gui/bweb/lib/Bweb.pm | 10 ++++++++-- gui/bweb/tpl/begin.tpl | 2 +- gui/bweb/tpl/config_edit.tpl | 2 ++ gui/bweb/tpl/config_view.tpl | 1 + 8 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gui/bweb/lang/es/tpl/config_edit.tpl b/gui/bweb/lang/es/tpl/config_edit.tpl index 3c9b6900be..de9dbb42ae 100644 --- a/gui/bweb/lang/es/tpl/config_edit.tpl +++ b/gui/bweb/lang/es/tpl/config_edit.tpl @@ -46,6 +46,8 @@ display_log_time : checked='checked' value='on' > + security : + checked='checked' value='on' > debug : checked='checked' value='on' > diff --git a/gui/bweb/lang/es/tpl/config_view.tpl b/gui/bweb/lang/es/tpl/config_view.tpl index 7380b743d8..31e39e7402 100644 --- a/gui/bweb/lang/es/tpl/config_view.tpl +++ b/gui/bweb/lang/es/tpl/config_view.tpl @@ -18,6 +18,7 @@ stat_job_table : Job bconsole : display_log_time : + security : debug : Libreria diff --git a/gui/bweb/lang/fr/tpl/config_edit.tpl b/gui/bweb/lang/fr/tpl/config_edit.tpl index 847c404059..123d499298 100644 --- a/gui/bweb/lang/fr/tpl/config_edit.tpl +++ b/gui/bweb/lang/fr/tpl/config_edit.tpl @@ -47,6 +47,8 @@ display_log_time : checked='checked' value='on' > + security : + checked='checked' value='on' > debug : checked='checked' value='on' > diff --git a/gui/bweb/lang/fr/tpl/config_view.tpl b/gui/bweb/lang/fr/tpl/config_view.tpl index c179d74b81..0ad1d0e5fe 100644 --- a/gui/bweb/lang/fr/tpl/config_view.tpl +++ b/gui/bweb/lang/fr/tpl/config_view.tpl @@ -18,6 +18,7 @@ stat_job_table : Job bconsole : display_log_time : + security : debug : Robotique (Autochanger) diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 65da7f8061..59d1084b8f 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -217,6 +217,7 @@ our %k_re = ( dbi => qr/^(dbi:(Pg|mysql):(?:\w+=[\w\d\.-]+;?)+)$/i, log_dir => qr!^(.+)?$!, stat_job_table => qr!^(\w*)$!, display_log_time => qr!^(on)?$!, + enable_security => qr/^(on)?$/, ); =head1 FUNCTION @@ -345,7 +346,10 @@ sub modify my ($self) = @_; $self->{error} = ''; + # we need to reset checkbox first $self->{debug} = 0; + $self->{enable_security} = 0; + $self->{display_log_time} = 0; foreach my $k (CGI::param()) { @@ -1444,7 +1448,9 @@ sub get_form replace => 1, expired => 1, enabled => 1, - ); + username => 1, + rolename => 1, + ); my %opt_p = ( # option with path fileset=> 1, mtxcmd => 1, @@ -2764,7 +2770,7 @@ INSERT LocationLog (Date, Comment, MediaId, LocationId, NewVolStatus) $self->display({ email => $self->{info}->{email_media}, url => $url, newlocation => $newloc, - # [ { volumename => 'vol1' }, { volumename => 'vol2' },..] + # [ { volumename => 'vol1' }, { volumename => 'vol2'},..] media => [ values %$media ], }, "change_location.tpl"); diff --git a/gui/bweb/tpl/begin.tpl b/gui/bweb/tpl/begin.tpl index e876123d8f..a535a6b540 100644 --- a/gui/bweb/tpl/begin.tpl +++ b/gui/bweb/tpl/begin.tpl @@ -59,7 +59,7 @@ if (navigator.appName == 'Konqueror') {
  • About
  •  Logged as
  • - 
  • + 
    diff --git a/gui/bweb/tpl/config_edit.tpl b/gui/bweb/tpl/config_edit.tpl index c918cf2988..65b66dc499 100644 --- a/gui/bweb/tpl/config_edit.tpl +++ b/gui/bweb/tpl/config_edit.tpl @@ -46,6 +46,8 @@ display_log_time : checked='checked' value='on' > + security : + checked='checked' value='on' > debug : checked='checked' value='on' > diff --git a/gui/bweb/tpl/config_view.tpl b/gui/bweb/tpl/config_view.tpl index 5056458da2..0dd5cf8cdf 100644 --- a/gui/bweb/tpl/config_view.tpl +++ b/gui/bweb/tpl/config_view.tpl @@ -18,6 +18,7 @@ stat_job_table : Job bconsole : display_log_time : + security : debug : Autochanger -- 2.39.5