summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-08-22 13:41:13 -0700
committerMark Wells <mark@freeside.biz>2016-08-22 13:41:13 -0700
commitf6a37fa1d6a30484ce8a268de170ecc8d5c31a23 (patch)
treedd7ebd9a89bacc456f10e5ea0900ab0e97e6a09a /httemplate/view
parentf5935488fe25773db20f376150e24e35a123870a (diff)
show data usage report link only for customers that might have data usage, #42310
Diffstat (limited to 'httemplate/view')
-rwxr-xr-xhttemplate/view/cust_main/packages.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html
index f3cfc06f4..958a0612d 100755
--- a/httemplate/view/cust_main/packages.html
+++ b/httemplate/view/cust_main/packages.html
@@ -167,7 +167,8 @@ if ( el ) el.scrollIntoView(true);
<A HREF="<%$p%>search/report_svc_acct.html?custnum=<% $cust_main->custnum %>"><% mt('accounts') |h %></A><BR>
<% mt('Usage reports:') |h %>
<A HREF="<%$p%>search/report_cdr.html?custnum=<% $cust_main->custnum %>"><% mt('CDRs') |h %></A>
-% if ( $curuser->access_right('Usage: RADIUS sessions') ) {
+% if ( $curuser->access_right('Usage: RADIUS sessions')
+% and $cust_main->num_usage_pkgs > 0 ) {
|
<& /elements/popup_link-cust_main.html,
'label' => emt('Data usage'),