summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm1
-rw-r--r--FS/FS/Conf.pm7
2 files changed, 8 insertions, 0 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 0131d8969..86e4b8946 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -402,6 +402,7 @@ sub access_info {
'custnum' => $custnum,
'access_pkgnum' => $session->{'pkgnum'},
'access_svcnum' => $session->{'svcnum'},
+ 'hide_usage' => $conf->exists('selfservice_hide-usage'),
};
}
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 1ed6b0cb6..940303fc5 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -2760,6 +2760,13 @@ and customer address. Include units.',
'per_agent' => 1,
},
+ {
+ 'key' => 'selfservice_hide-usage',
+ 'section' => 'self-service',
+ 'description' => 'Hide usage data in self-service interface.',
+ 'type' => 'checkbox',
+ 'per_agent' => 1,
+ },
{
'key' => 'selfservice_process-pkgpart',