mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Check permissions in RefreshRoomList
This commit is contained in:
parent
f231ce5aae
commit
91bab27535
@ -47,6 +47,7 @@ public function show() {
|
|||||||
@header('Content-type: application/json');
|
@header('Content-type: application/json');
|
||||||
$json = array();
|
$json = array();
|
||||||
foreach ($this->rooms as $room) {
|
foreach ($this->rooms as $room) {
|
||||||
|
if (!$room->canEnter()) continue;
|
||||||
$json[] = array(
|
$json[] = array(
|
||||||
'title' => WCF::getLanguage()->get($room->title),
|
'title' => WCF::getLanguage()->get($room->title),
|
||||||
'link' => \wcf\system\request\LinkHandler::getInstance()->getLink('Chat', array(
|
'link' => \wcf\system\request\LinkHandler::getInstance()->getLink('Chat', array(
|
||||||
|
Loading…
Reference in New Issue
Block a user