[xoops-cvslog 4781] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

Minahito minah****@users*****
2006年 10月 5日 (木) 18:08:55 JST


Index: xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php
diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.1 xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.2
--- xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.1	Tue Oct  3 18:30:38 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php	Thu Oct  5 18:08:55 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package Legacy
- * @version $Id: Legacy_AdminModuleController.class.php,v 1.1.2.5.2.1 2006/10/03 09:30:38 minahito Exp $
+ * @version $Id: Legacy_AdminModuleController.class.php,v 1.1.2.5.2.2 2006/10/05 09:08:55 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -48,7 +48,7 @@
 	 */
 	function hasPermission()
 	{
-		if (!is_object($this->mController->mXoopsUser)) {
+		if (!is_object($this->mController->mRoot->mContext->mXoopsUser)) {
 			return false;
 		}
 		
@@ -68,7 +68,7 @@
 			}
 		
 			$modPermHandler =& xoops_gethandler('groupperm');
-			return $modPermHandler->checkRight('module_admin', $mid, $this->mController->mXoopsUser->getGroups());
+			return $modPermHandler->checkRight('module_admin', $mid, $this->mController->mRoot->mContext->mXoopsUser->getGroups());
 		}
 		
 		$GLOBALS['xoopsUserIsAdmin'] = true;


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