mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Don't check whether the room can be entered for guests.
This commit is contained in:
parent
3279af8041
commit
7004196b61
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user