Fixed session handler issue
authorMarcel Werk <burntime@woltlab.com>
Mon, 21 Nov 2011 19:23:02 +0000 (20:23 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 21 Nov 2011 19:23:02 +0000 (20:23 +0100)
wcfsetup/install/files/lib/data/user/User.class.php
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 8731134481ecb5b10c1d8f38c79e6a9c84478b0d..8af6960931c5ece0c75b9ab102669cc1cdfe5876 100644 (file)
@@ -109,7 +109,7 @@ final class User extends DatabaseObject {
                if ($this->groupIDs === null) {
                        if (!$this->userID) {
                                // user is a guest, use default guest group
-                               $this->groupIDs = UserGroup::getGroupIDsByType(array(UserGroup::GUESTS));
+                               $this->groupIDs = UserGroup::getGroupIDsByType(array(UserGroup::GUESTS, UserGroup::EVERYONE));
                        }
                        else {
                                // load storage data
index 1b828a9329a8d3bea56beb3a66de926021f1f0bc..ca1f6a1ee5f16cac8c954a27b61dffd67b5fec78 100644 (file)
@@ -400,7 +400,7 @@ class SessionHandler extends SingletonFactory {
                $cacheName = 'groups-'.PACKAGE_ID.'-'.$groups;
                CacheHandler::getInstance()->addResource(
                        $cacheName,
-                       WCF_DIR.'cache/cache.'.$cacheName.'.php',
+                       WCF_DIR.'cache/cache.groups-'.PACKAGE_ID.'-'.$groupsFileName.'.php',
                        'wcf\system\cache\builder\UserGroupPermissionCacheBuilder'
                );