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:
parent
2400564500
commit
73e8f053ee
@ -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
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user