projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow Configuration right to see global message templates, avoid weird surprises...
[freeside.git]
/
httemplate
/
browse
/
msg_template.html
diff --git
a/httemplate/browse/msg_template.html
b/httemplate/browse/msg_template.html
index
331906c
..
252ee1f
100644
(file)
--- a/
httemplate/browse/msg_template.html
+++ b/
httemplate/browse/msg_template.html
@@
-9,7
+9,7
@@
'disableable' => 1,
'disabled_statuspos' => 2,
'agent_virt' => 1,
'disableable' => 1,
'disabled_statuspos' => 2,
'agent_virt' => 1,
- 'agent_null_right' =>
'Edit global templates'
,
+ 'agent_null_right' =>
['Edit global templates','Configuration']
,
'agent_pos' => 3,
'header' => [ 'Name' ],
'fields' => [ 'msgname' ],
'agent_pos' => 3,
'header' => [ 'Name' ],
'fields' => [ 'msgname' ],
@@
-20,7
+20,8
@@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Edit templates')
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Edit templates')
- || $FS::CurrentUser::CurrentUser->access_right('Edit global templates');
+ || $FS::CurrentUser::CurrentUser->access_right('Edit global templates')
+ || $FS::CurrentUser::CurrentUser->access_right('Configuration');
my $link = [ "${p}edit/msg_template.html?", 'msgnum' ];
my $link = [ "${p}edit/msg_template.html?", 'msgnum' ];