summaryrefslogtreecommitdiff
path: root/httemplate/elements/menu.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-05-15 18:25:37 -0700
committerIvan Kohler <ivan@freeside.biz>2012-05-15 18:25:37 -0700
commit49fc33db77d202f175a4d8a33e3eab1e52080a4d (patch)
tree9ce8e9a30a35ac581facf78479d4aee27fe89942 /httemplate/elements/menu.html
parent1ae273f69e5bf2b46c9c5fcd990ad923770ace56 (diff)
read only access to message templates, RT#1`7477
Diffstat (limited to 'httemplate/elements/menu.html')
-rw-r--r--httemplate/elements/menu.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html
index fcc17eaa2..cf79af9d5 100644
--- a/httemplate/elements/menu.html
+++ b/httemplate/elements/menu.html
@@ -532,7 +532,7 @@ $config_billing{'Billing events'} = [ $fsurl.'browse/part_event.html', 'Billing
|| $curuser->access_right('Edit global billing events');
if ( $curuser->access_right('Configuration') ) {
#$config_billing{'Invoice events'} = [ $fsurl.'browse/part_bill_event.cgi', 'Deprecated, old-style actions for overdue invoices' ];
- $config_billing{'Invoice templates'} = [ $fsurl.'browse/invoice_template.html', 'Edit templates for HTML, plaintext and typeset invoices' ];
+#this doesn't work right# $config_billing{'Invoice templates'} = [ $fsurl.'browse/invoice_template.html', 'Edit templates for HTML, plaintext and typeset invoices' ];
$config_billing{'Prepaid cards'} = [ $fsurl.'search/prepay_credit.html', 'View outstanding cards, generate new cards' ];
$config_billing{'Call rates and regions'} = [ \%config_billing_rates, 'Manage rate plans, regions and prefixes for VoIP and call billing' ];
@@ -565,9 +565,8 @@ tie my %config_nms, 'Tie::IxHash',
tie my %config_misc, 'Tie::IxHash';
$config_misc{'Message templates'} = [ $fsurl.'browse/msg_template.html', 'Templates for customer notices' ]
- if $curuser->access_right('Edit templates')
- || $curuser->access_right('Edit global templates')
- || $curuser->access_right('Configuration');
+ if $curuser->access_right(['View templates', 'View global templates',
+ 'Edit templates', 'Edit global templates', ]);
$config_misc{'Advertising sources'} = [ $fsurl.'browse/part_referral.html', 'Where a customer heard about your service.' ]
if $curuser->access_right('Edit advertising sources')
|| $curuser->access_right('Edit global advertising sources');