From 73e8f053eedbcf85872c240d96a3da6396e0a615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 2 Dec 2014 18:16:50 +0100 Subject: [PATCH] Properly hide dashboard box for guests --- file/lib/system/dashboard/box/OnlineListDashboardBox.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php index 4af020c..a7b387d 100644 --- a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php +++ b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php @@ -38,6 +38,9 @@ public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage * @see wcf\system\dashboard\box\AbstractContentDashboardBox::render() */ protected function render() { + if (!MODULE_CHAT) return false; + if (!\wcf\system\WCF::getUser()->userID) return false; + \wcf\system\WCF::getTPL()->assign(array( 'rooms' => $this->rooms ));