add ACL to allow download of browse/ stuff too, when possible. RT#4681
authorivan <ivan>
Tue, 27 Jan 2009 09:39:14 +0000 (09:39 +0000)
committerivan <ivan>
Tue, 27 Jan 2009 09:39:14 +0000 (09:39 +0000)
FS/FS/AccessRight.pm
httemplate/search/elements/search.html

index b016d18..bf076f6 100644 (file)
@@ -250,6 +250,10 @@ tie my %rights, 'Tie::IxHash',
     { rightname=>'Broadband global configuration', global=>1 },
 
     { rightname=>'Configuration', global=>1 }, #most of the rest of the configuraiton is not agent-virtualized
+
+    { rightname=>'Configuration download', }, #description of how it affects
+                                              #search/elements/search.html
+
   ],
   
 ;
index 4b8fc44..dd0555c 100644 (file)
@@ -699,6 +699,9 @@ my %align = (
 $opt{align} = [ map $align{$_}, split(//, $opt{align}) ],
   unless !$opt{align} || ref($opt{align});
 
+$opt{disable_download} = 0
+  if $opt{disable_download} && $curuser->access_right('Configuration download');
+
 if ( $opt{'agent_virt'} ) {
 
   my $agentnums_sql = $curuser->agentnums_sql(