Minahito
minah****@users*****
2006年 10月 15日 (日) 15:10:00 JST
Index: xoops2jp/html/modules/user/actions/UserDeleteAction.class.php diff -u xoops2jp/html/modules/user/actions/UserDeleteAction.class.php:1.1.2.2 xoops2jp/html/modules/user/actions/UserDeleteAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/user/actions/UserDeleteAction.class.php:1.1.2.2 Sun Sep 24 19:37:49 2006 +++ xoops2jp/html/modules/user/actions/UserDeleteAction.class.php Sun Oct 15 15:10:00 2006 @@ -48,6 +48,15 @@ return true; } + function hasPermission(&$controller, &$xoopsUser, $moduleConfig) + { + if ($xoopsUser->get('uid') == 1) { + return false; + } + + return true; + } + function getDefaultView(&$controller, &$xoopsUser) { return USER_FRAME_VIEW_INPUT;