1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Properly hide dashboard box for guests

This commit is contained in:
Tim Düsterhus 2014-12-02 18:16:50 +01:00
parent 2400564500
commit 73e8f053ee

View File

@ -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
));