1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix permission check in WhereCommand

This commit is contained in:
Tim Düsterhus 2014-08-14 19:10:30 +02:00
parent 12b321d7e8
commit 4145715b06

View File

@ -25,6 +25,8 @@ public function getMessage() {
$rooms = \chat\data\room\RoomCache::getInstance()->getRooms(); $rooms = \chat\data\room\RoomCache::getInstance()->getRooms();
foreach ($rooms as $room) { foreach ($rooms as $room) {
if (!$room->canEnter()) continue;
$users = $room->getUsers(); $users = $room->getUsers();
$tmp = array(); $tmp = array();
foreach ($users as $user) { foreach ($users as $user) {