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:
parent
12b321d7e8
commit
4145715b06
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user