projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
51c5ca4
)
add ACL to allow download of browse/ stuff too, when possible. RT#4681
author
ivan
<ivan>
Tue, 27 Jan 2009 09:39:14 +0000
(09:39 +0000)
committer
ivan
<ivan>
Tue, 27 Jan 2009 09:39:14 +0000
(09:39 +0000)
FS/FS/AccessRight.pm
patch
|
blob
|
history
httemplate/search/elements/search.html
patch
|
blob
|
history
diff --git
a/FS/FS/AccessRight.pm
b/FS/FS/AccessRight.pm
index
b016d18
..
bf076f6
100644
(file)
--- 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=>'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
4b8fc44
..
dd0555c
100644
(file)
--- 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{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(
if ( $opt{'agent_virt'} ) {
my $agentnums_sql = $curuser->agentnums_sql(