Minahito
minah****@users*****
2006年 10月 15日 (日) 01:47:31 JST
Index: xoops2jp/html/modules/user/admin/forms/GroupAdminDeleteForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/GroupAdminDeleteForm.class.php:1.1.2.5.2.2 xoops2jp/html/modules/user/admin/forms/GroupAdminDeleteForm.class.php:1.1.2.5.2.3 --- xoops2jp/html/modules/user/admin/forms/GroupAdminDeleteForm.class.php:1.1.2.5.2.2 Fri Sep 29 17:14:44 2006 +++ xoops2jp/html/modules/user/admin/forms/GroupAdminDeleteForm.class.php Sun Oct 15 01:47:31 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: GroupAdminDeleteForm.class.php,v 1.1.2.5.2.2 2006/09/29 08:14:44 minahito Exp $ + * @version $Id: GroupAdminDeleteForm.class.php,v 1.1.2.5.2.3 2006/10/14 16:47:31 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -32,6 +32,14 @@ $this->mFieldProperties['groupid']->setDependsByArray(array('required')); $this->mFieldProperties['groupid']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_GROUPID); } + + function validateGroupid() + { + $groupid = $this->get('groupid'); + if ($groupid <= XOOPS_GROUP_ANONYMOUS) { + $this->addErrorMessage("You can't delete this group."); + } + } function load(&$obj) {