Minahito
minah****@users*****
2006年 9月 26日 (火) 13:34:17 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.14 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.14 Mon Sep 25 18:34:40 2006 +++ xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php Tue Sep 26 13:34:17 2006 @@ -212,7 +212,10 @@ function hasPermission(&$controller, &$xoopsUser) { + $moduleHandler =& xoops_gethandler('module'); $module =& $moduleHandler->getByDirname('base'); + + $permHandler =& xoops_gethandler('groupperm'); return $permHandler->checkRight('module_admin', $module->get('mid'), $xoopsUser->getGroups()); } @@ -253,9 +256,6 @@ function hasPermission(&$controller, &$xoopsUser) { - $moduleHandler =& xoops_gethandler('module'); - $module =& $moduleHandler->getByDirname('base'); - $permHandler =& xoops_gethandler('groupperm'); return $permHandler->checkRight('module_admin', $this->_mMaster->mModule->get('mid'), $xoopsUser->getGroups()); }