diff options
author | C.J. Adams-Collier <cjac@colliertech.org> | 2014-09-26 12:00:43 -0700 |
---|---|---|
committer | C.J. Adams-Collier <cjac@colliertech.org> | 2014-09-26 12:00:43 -0700 |
commit | 3a7f3a2e81cc7423ba9a08fd4b28b3b5f4f227a2 (patch) | |
tree | 35de9607b02019e411e1fc01e98506bf06c4dbaa /FS/FS/ClientAPI | |
parent | 698e8e9c11cea396fdb1e867b24bc2412e98781d (diff) |
FS RT #30363 - Hide Account usage template output in an HTML comment when $hide_usage is true
Diffstat (limited to 'FS/FS/ClientAPI')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 86e4b89..bcfe35c 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -398,11 +398,12 @@ sub access_info { $info->{'timeout'} = $conf->config('selfservice-timeout') || 3600; + $info->{'hide_usage'} = $conf->exists('selfservice_hide-usage'); + return { %$info, 'custnum' => $custnum, 'access_pkgnum' => $session->{'pkgnum'}, 'access_svcnum' => $session->{'svcnum'}, - 'hide_usage' => $conf->exists('selfservice_hide-usage'), }; } |