From 4145715b06ab6e2b0dc82315efc32a3468685fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 14 Aug 2014 19:10:30 +0200 Subject: [PATCH] Fix permission check in WhereCommand --- file/lib/system/command/commands/WhereCommand.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file/lib/system/command/commands/WhereCommand.class.php b/file/lib/system/command/commands/WhereCommand.class.php index 5b3ae2d..1d8b1d5 100644 --- a/file/lib/system/command/commands/WhereCommand.class.php +++ b/file/lib/system/command/commands/WhereCommand.class.php @@ -25,6 +25,8 @@ public function getMessage() { $rooms = \chat\data\room\RoomCache::getInstance()->getRooms(); foreach ($rooms as $room) { + if (!$room->canEnter()) continue; + $users = $room->getUsers(); $tmp = array(); foreach ($users as $user) {