diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-11-09 23:36:07 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-11-09 23:39:53 -0600 |
commit | 0790edcdbe153a90f370830184765c897b2a56b5 (patch) | |
tree | 4a767f1c489e73b195f3472e53b2ffd841e5e99a /FS | |
parent | c6ca6b86737effb2e3475734753f3f02f2b095ed (diff) |
RT#24739: Announcment page for customers logged into portal
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 5 | ||||
-rw-r--r-- | FS/FS/Conf.pm | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index f272cd490..6e76e1d1b 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -669,6 +669,11 @@ sub customer_info_short { } + # this is here because this routine is called by both fs_ and ng_ main pages, where it appears + # it is not customer-specific, though it is only shown to authenticated customers + # it is not currently agent-specific, though at some point it might be + $return{'announcement'} = join(' ',$conf->config('selfservice-announcement')) || ''; + return { 'error' => '', 'custnum' => $custnum, %return, diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 990f2a3be..ffe53027d 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -5679,6 +5679,13 @@ and customer address. Include units.', }, { + 'key' => 'selfservice-announcement', + 'section' => 'self-service', + 'description' => 'HTML announcement to display to all authenticated users on account overview page', + 'type' => 'textarea', + }, + + { 'key' => 'logout-timeout', 'section' => 'UI', 'description' => 'If set, automatically log users out of the backoffice after this many minutes.', |