summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/AccessRight.pm4
-rw-r--r--httemplate/search/elements/search.html3
2 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/AccessRight.pm b/FS/FS/AccessRight.pm
index b016d1885..bf076f649 100644
--- a/FS/FS/AccessRight.pm
+++ b/FS/FS/AccessRight.pm
@@ -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
+
],
;
diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html
index 4b8fc441e..dd0555c6d 100644
--- a/httemplate/search/elements/search.html
+++ b/httemplate/search/elements/search.html
@@ -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(