diff --git a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php index 5979d61..1418f5a 100644 --- a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php +++ b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php @@ -17,6 +17,9 @@ class ChatPageMenuItemProvider extends DefaultPageMenuItemProvider { * @see wcf\system\menu\page\PageMenuItemProvider::isVisible() */ public function isVisible() { + // guests are not supported + if (!WCF::getUser()->userID) return false; + try { \wcf\data\chat\room\ChatRoom::getCache()->seek(0); return true;