1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Check permissions in Page-Menu

This commit is contained in:
Tim Düsterhus 2011-12-26 12:43:19 +01:00
parent 3a32aa1b8c
commit f231ce5aae

View File

@ -25,8 +25,14 @@ public function isVisible() {
try { try {
$cache = ChatRoom::getCache(); $cache = ChatRoom::getCache();
$cache->seek(0); $i = 0;
do {
$cache->seek($i++);
$this->room = $cache->search($cache->key()); $this->room = $cache->search($cache->key());
}
while (!$this->room->canEnter());
return true; return true;
} }
catch (\OutOfBoundsException $e) { catch (\OutOfBoundsException $e) {