[xoops-cvslog 4700] CVS update: xoops2jp/html/modules/user/preload/Primary

Back to archive index

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));
+		}
 	}
 }
 


xoops-cvslog メーリングリストの案内
Back to archive index