[xoops-cvslog 4818] CVS update: xoops2jp/html/modules/base/admin/actions

Back to archive index

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


Index: xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php
diff -u xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.15 xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.15.2.1
--- xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.15	Tue Sep 26 13:34:17 2006
+++ xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php	Fri Oct  6 18:47:02 2006
@@ -256,8 +256,8 @@
 
 	function hasPermission(&$controller, &$xoopsUser)
 	{
-		$permHandler =& xoops_gethandler('groupperm');
-		return $permHandler->checkRight('module_admin', $this->_mMaster->mModule->get('mid'), $xoopsUser->getGroups());
+		Legacy_RoleManager::loadRolesByModule($this->_mMaster->mModule);
+		return $controller->mRoot->mContext->mUser->isInRole('Module.' . $this->_mMaster->mModule->get('dirname') . '.Admin');
 	}
 	
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)


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