summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_pkg.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-02-15 14:42:24 -0800
committerIvan Kohler <ivan@freeside.biz>2014-02-15 14:42:24 -0800
commit1d92f6927bf5dd1b2d48041bba913cab881ff6c9 (patch)
treef35577b87e7887907745d6c544340216a0ef8a68 /httemplate/edit/part_pkg.cgi
parent6c298097f93537b6533ccd50f87a11c1ce1d50b8 (diff)
add "Edit package definition costs" ACL, RT#27140
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-xhttemplate/edit/part_pkg.cgi11
1 files changed, 9 insertions, 2 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index 2ec3481e5..cabaf0a05 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -200,8 +200,15 @@
{ type => 'tablebreak-tr-title',
value => 'Cost tracking', #better name?
},
- { field=>'setup_cost', type=>'money', },
- { field=>'recur_cost', type=>'money', },
+
+ ( $curuser->access_right('Edit package definition costs')
+ ? ( { field=>'setup_cost', type=>'money', },
+ { field=>'recur_cost', type=>'money', },
+ )
+ : ( { field=>'setup_cost', type=>'fixed', },
+ { field=>'recur_cost', type=>'fixed', },
+ )
+ ),
( $conf->exists('part_pkg-delay_start')
? ( { type => 'tablebreak-tr-title',