From 7004196b6190d1017ced01738c48dce571873c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 24 Apr 2013 14:31:42 +0200 Subject: [PATCH] Don't check whether the room can be entered for guests. --- file/lib/system/dashboard/box/OnlineListDashboardBox.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php index 4027391..289e3be 100644 --- a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php +++ b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php @@ -24,6 +24,7 @@ class OnlineListDashboardBox extends \wcf\system\dashboard\box\AbstractContentDa public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage $page) { parent::init($box, $page); + if (!WCF::getUser()->userID) return; $this->rooms = data\room\Room::getCache(); foreach ($this->rooms as $key => $room) { @@ -35,6 +36,7 @@ public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage * @see wcf\system\dashboard\box\AbstractContentDashboardBox::render() */ protected function render() { + if (!WCF::getUser()->userID) return; if (count($this->rooms)) { \wcf\system\WCF::getTPL()->assign(array( 'rooms' => $this->rooms