X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=lib%2FBackupPC%2FCGI%2FSummary.pm;h=b4fc8d964cc034e4035f8c84d149b61fa74ac6ca;hp=fd2444cee335060cae18e270eea5402b94093bfd;hb=2a19fd178108b0898e79d2b8908236429ca4c6a3;hpb=8f5625f9cdf47f8e04be654c4954838b2df3e26d diff --git a/lib/BackupPC/CGI/Summary.pm b/lib/BackupPC/CGI/Summary.pm index fd2444c..b4fc8d9 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 2.1.3, released 21 Jan 2007. # # 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" ) {