diff options
| author | Mark Wells <mark@freeside.biz> | 2013-02-27 12:47:34 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2013-02-27 12:47:34 -0800 |
| commit | 2920cfc494c2811ca7879d6ecaa353d216c9f69d (patch) | |
| tree | 5d19fbcb32f75a67940609afa1cf71fc72297228 /httemplate/view/elements/svc_edit_link.html | |
| parent | a5e611f5ffc045a59fee9e1b03f8ac79ef794d00 (diff) | |
"Edit password" ACL, #21178, part 2
Diffstat (limited to 'httemplate/view/elements/svc_edit_link.html')
| -rw-r--r-- | httemplate/view/elements/svc_edit_link.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/view/elements/svc_edit_link.html b/httemplate/view/elements/svc_edit_link.html index d65db0a8f..5438ed266 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 %>'; } </SCRIPT> -<A HREF="<% $edit_url %>"><% mt("Edit this [_1]", $label) |h %></A> | -<A HREF="javascript:areyousure_delete()"><% mt('Unprovision this Service') |h %></A> +% if ( $curuser->access_right('Provision customer service') ) { +| <A HREF="<% $edit_url %>"><% mt("Edit this [_1]", $label) |h %></A> +% } +% if ( $curuser->access_right('Unprovision customer service') ) { +| <A HREF="javascript:areyousure_delete()"><% mt('Unprovision this Service') |h %></A> +% } % } <%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; </%init> |
