diff options
author | Mark Wells <mark@freeside.biz> | 2014-02-18 22:04:12 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-02-18 22:04:24 -0800 |
commit | 30e2dfd524a3f52445cbca6bc2cd1962dce7eb04 (patch) | |
tree | 2f54d7d1e316d4e0ab3137848e46ea8dfceb4a37 /httemplate/edit/process | |
parent | 3c7fd3e7d40f2c946b2fcf63c63d595c82fcae22 (diff) |
non-package fees, phase 1, #25899
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-x | httemplate/edit/process/part_fee.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/httemplate/edit/process/part_fee.html b/httemplate/edit/process/part_fee.html new file mode 100755 index 000000000..25656e9b0 --- /dev/null +++ b/httemplate/edit/process/part_fee.html @@ -0,0 +1,20 @@ +<& elements/process.html, + 'debug' => 1, + 'table' => 'part_fee', + 'agent_virt' => 1, + 'agent_null_right' => 'Edit global fee definitions', + 'viewall_dir' => 'browse', + 'process_o2m' => { + 'table' => 'part_fee_msgcat', + 'fields' => [ 'locale', 'itemdesc' ], + }, +&> +<%init> + +my $curuser = $FS::CurrentUser::CurrentUser; +my $acl_edit = $curuser->access_right('Edit fee definitions'); +my $acl_edit_global = $curuser->access_right('Edit global fee definitions'); +die "access denied" + unless $acl_edit or $acl_edit_global; + +</%init> |