[xoops-cvslog 4819] CVS update: xoops2jp/html/modules/base/class

Back to archive index

Minahito minah****@users*****
2006年 10月 6日 (金) 18:47:18 JST


Index: xoops2jp/html/modules/base/class/ActionFrame.class.php
diff -u xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.2 xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.3
--- xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.2	Thu Oct  5 18:07:31 2006
+++ xoops2jp/html/modules/base/class/ActionFrame.class.php	Fri Oct  6 18:47:18 2006
@@ -162,12 +162,7 @@
 	function hasPermission(&$controller, &$xoopsUser)
 	{
 		if ($this->_mAdminFlag) {
-			$moduleHandler =& xoops_gethandler('module');
-			$permHandler =& xoops_gethandler('groupperm');
-		
-			$module =& $moduleHandler->getByDirname('base');
-		
-			return $permHandler->checkRight('module_admin', $module->get('mid'), $xoopsUser->getGroups());
+			return $controller->mRoot->mContext->mUser->isInRole('Module.base.Admin');
 		}
 		else {
 			//


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