diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-16 20:47:57 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-16 20:47:57 -0700 |
commit | 395b48e2a32e90ae0edf2e45a31758dc78181f04 (patch) | |
tree | 534be0cb287bb965e90a8a2969baff6018d62670 /httemplate | |
parent | 9bee11036c3bf8e7905bbebf77a77792660186ac (diff) |
disable virtual field access by default until it is working, RT#35178
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/browse/part_virtual_field.html | 2 | ||||
-rw-r--r-- | httemplate/elements/menu.html | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/browse/part_virtual_field.html b/httemplate/browse/part_virtual_field.html index 1d8fad4c6..5e3876285 100644 --- a/httemplate/browse/part_virtual_field.html +++ b/httemplate/browse/part_virtual_field.html @@ -30,6 +30,6 @@ <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + unless $FS::CurrentUser::CurrentUser->access_right('Edit custom fields'); </%init> diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 7d34d427e..4d0d97958 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -755,10 +755,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') |