projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
63d5cd3
)
fix agent self-editing of templates without other config, RT#26766
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 16 Jan 2014 21:50:26 +0000
(13:50 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 16 Jan 2014 21:50:26 +0000
(13:50 -0800)
httemplate/elements/menu.html
patch
|
blob
|
history
diff --git
a/httemplate/elements/menu.html
b/httemplate/elements/menu.html
index
5225cce
..
99f5e11
100644
(file)
--- a/
httemplate/elements/menu.html
+++ b/
httemplate/elements/menu.html
@@
-766,11
+766,14
@@
$config_menu{'Network Monitoring'} = [ \%config_nms, '' ]
if $curuser->access_right('Configure network monitoring')
&& $conf->config('network_monitoring_system') eq 'Torrus_Internal';
if $curuser->access_right('Configure network monitoring')
&& $conf->config('network_monitoring_system') eq 'Torrus_Internal';
-if ( $curuser->access_right('Configuration' )
- || $curuser->access_right('Edit advertising sources')
- || $curuser->access_right('Edit global advertising sources')
+if ( $curuser->access_right([ 'Configuration',
+ 'View templates',
+ 'View global templates',
+ 'Edit templates',
+ 'Edit global templates',
+ ])
) {
) {
- $config_menu{separator9} = '';
+ $config_menu{separator9} = ''
if keys %config_menu
;
$config_menu{'Miscellaneous'} = [ \%config_misc, '' ];
}
$config_menu{'Miscellaneous'} = [ \%config_misc, '' ];
}