Minahito
minah****@users*****
2006年 9月 29日 (金) 17:14:45 JST
Index: xoops2jp/html/modules/user/preload/Primary/Primary.class.php diff -u xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.2 xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.3 --- xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.2 Thu Sep 28 19:25:23 2006 +++ xoops2jp/html/modules/user/preload/Primary/Primary.class.php Fri Sep 29 17:14:45 2006 @@ -56,7 +56,7 @@ $controller->mXoopsUser->setGroups($_SESSION['xoopsUserGroups']); $identity =& new Legacy_Identity($controller->mXoopsUser); - $principal = new XCube_Principal($identity); + $principal = new Legacy_GenericPrincipal($identity, $_SESSION['xoopsUserGroups']); // // Use 'mysession' @@ -69,6 +69,10 @@ } } } + else { + $identity =& new Legacy_AnonymousIdentity(); + $principal = new Legacy_GenericPrincipal($identity, array(XOOPS_GROUP_ANONYMOUS)); + } } }