X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Felements%2Fsvc_edit_link.html;h=f525f1f5dfb11507cddd619f552db93b69add788;hb=07c887e7a126a150f870be25976b81a3da5ab0a1;hp=b16261a87bc9e850be0050fdf554bbfa83dff0d1;hpb=998f029ef805c73e90543b34192e16d38a23c69c;p=freeside.git diff --git a/httemplate/view/elements/svc_edit_link.html b/httemplate/view/elements/svc_edit_link.html index b16261a87..f525f1f5d 100644 --- a/httemplate/view/elements/svc_edit_link.html +++ b/httemplate/view/elements/svc_edit_link.html @@ -7,8 +7,12 @@ function areyousure_delete() { window.location.href = '<% $cancel_url %>'; } -<% mt("Edit this [_1]", $label) |h %> | -<% mt('Unprovision this Service') |h %> +% if ( $curuser->access_right('Provision customer service') ) { +| <% mt("Edit this [_1]", $label) |h %> +% } +% if ( $curuser->access_right('Unprovision customer service') ) { +| <% mt('Unprovision this Service') |h %> +% } % } <%init> my %opt = @_; @@ -20,4 +24,5 @@ my $cancel_url = $p . 'misc/unprovision.cgi?' . $svc_x->svcnum; my $cust_svc = $svc_x->cust_svc; # always exists my $cancel_date = $cust_svc->pkg_cancel_date; my ($label) = $cust_svc->label; +my $curuser = $FS::CurrentUser::CurrentUser;