X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FSummary.pm;h=dbf132506d18b02d71beb5a3edbf1e84ab0c8d40;hp=fd2444cee335060cae18e270eea5402b94093bfd;hb=5b3e6091d542c2e7445d5dd511cdf6e20aec8b8d;hpb=8f5625f9cdf47f8e04be654c4954838b2df3e26d;ds=sidebyside diff --git a/lib/BackupPC/CGI/Summary.pm b/lib/BackupPC/CGI/Summary.pm index fd2444c..dbf1325 100644 --- a/lib/BackupPC/CGI/Summary.pm +++ b/lib/BackupPC/CGI/Summary.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 2.1.0beta0, released 20 Mar 2004. +# Version 3.0.0alpha, released 23 Jan 2006. # # See http://backuppc.sourceforge.net. # @@ -58,9 +58,8 @@ sub action $bpc->ConfigRead($host); %Conf = $bpc->Conf(); - if ( $Conf{XferMethod} eq "archive" ) { - next; - } + next if ( $Conf{XferMethod} eq "archive" ); + next if ( !$Privileged && !CheckPermission($host) ); for ( my $i = 0 ; $i < @Backups ; $i++ ) { if ( $Backups[$i]{type} eq "full" ) {