Added missing visibility check in user online list
authorMarcel Werk <burntime@woltlab.com>
Sun, 3 Sep 2017 17:36:31 +0000 (19:36 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 3 Sep 2017 17:36:38 +0000 (19:36 +0200)
Closes #2408

wcfsetup/install/files/lib/data/user/online/UserOnline.class.php

index d610184dabab256e2920438cb614a0640426618a..c14588f5f89185602edbde278c4b5c3e9c66b557 100644 (file)
@@ -72,7 +72,7 @@ class UserOnline extends UserProfile {
                                                $this->location = $page->getHandler()->getOnlineLocation($page, $this);
                                                return true;
                                        }
-                                       else if ($page->isAccessible()) {
+                                       else if ($page->isVisible() && $page->isAccessible()) {
                                                $title = $page->getTitle();
                                                if (!empty($title)) {
                                                        if ($page->pageType != 'system') {