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:
parent
3a32aa1b8c
commit
f231ce5aae
@ -25,8 +25,14 @@ public function isVisible() {
|
||||
|
||||
try {
|
||||
$cache = ChatRoom::getCache();
|
||||
$cache->seek(0);
|
||||
$i = 0;
|
||||
|
||||
do {
|
||||
$cache->seek($i++);
|
||||
$this->room = $cache->search($cache->key());
|
||||
}
|
||||
while (!$this->room->canEnter());
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (\OutOfBoundsException $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user