summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-06-16 20:48:01 -0700
committerIvan Kohler <ivan@freeside.biz>2015-06-16 20:48:01 -0700
commit5b55f642a6c0a3e0e2d3c35414cb7da9ac1578f4 (patch)
tree2a5735043a5b8a5960fbea7e675f6d30e3b4b562 /httemplate/elements
parentc5cd727ec675c94397e5d54abdeed6709050191e (diff)
disable virtual field access by default until it is working, RT#35178
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/menu.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html
index 34bba7e8c..b4d019a67 100644
--- a/httemplate/elements/menu.html
+++ b/httemplate/elements/menu.html
@@ -737,10 +737,10 @@ $config_misc{'Message templates'} = [ $fsurl.'browse/msg_template.html', 'Templa
$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');
-if ( $curuser->access_right('Configuration') ) {
- $config_misc{'Custom fields'} = [ $fsurl.'browse/part_virtual_field.html', 'Locally defined fields', ];
- $config_misc{'Translation strings'} = [ $fsurl.'browse/msgcat.html', 'Translations and other customizable labels for each locale' ];
-}
+$config_misc{'Custom fields'} = [ $fsurl.'browse/part_virtual_field.html', 'Locally defined fields', ]
+ if $curuser->access_right('Edit custom fields');
+$config_misc{'Translation strings'} = [ $fsurl.'browse/msgcat.html', 'Translations and other customizable labels for each locale' ]
+ if $curuser->access_right('Configuration');
$config_misc{'Inventory classes and inventory'} = [ $fsurl.'browse/inventory_class.html', 'Setup inventory classes and stock inventory' ]
if $curuser->access_right('Edit inventory')
|| $curuser->access_right('Edit global inventory')