Bug 20068: Check if user logged in before passing dashboard params to template
authorAleisha Amohia <aleishaamohia@hotmail.com>
Mon, 22 Jan 2018 23:52:21 +0000 (23:52 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 23 Jan 2018 12:33:29 +0000 (09:33 -0300)
commite7236df74223b3976f4da88f51d8321d7a4802f7
treed35ff5f78f008b3a043a6bffb1d60d516c07f09f
parent19e97bed4ecec730058c2f4f95efb49f07c0f44e
Bug 20068: Check if user logged in before passing dashboard params to template

This prevents warns from dashboard variables when not logged in

To test:
1) Go to OPAC main homepage. Do not log in
2) Notice warn
3) Apply patch and refresh
4) Warn should be gone
5) Log in
6) Confirm dashboard shows as normal

Sponsored-by: Catalyst IT

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
opac/opac-main.pl