Minahito
minah****@users*****
2005年 12月 25日 (日) 16:02:17 JST
Index: xoops2jp/html/kernel/groupperm.php diff -u xoops2jp/html/kernel/groupperm.php:1.2 xoops2jp/html/kernel/groupperm.php:1.2.8.1 --- xoops2jp/html/kernel/groupperm.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/kernel/groupperm.php Sun Dec 25 16:02:17 2005 @@ -1,5 +1,5 @@ <?php -// $Id: groupperm.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $ +// $Id: groupperm.php,v 1.2.8.1 2005/12/25 07:02:17 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -292,6 +292,21 @@ } /**#@-*/ + /** + * Delete + */ + function deleteBasicPermission($gperm_groupid) + { + $criteria = new CriteriaCompo(new Criteria('gperm_groupid', $gperm_groupid)); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria2 = new CriteriaCompo(new Criteria('gperm_name', 'system_admin')); + $criteria2->add(new Criteria('gperm_name', 'module_admin'), 'OR'); + $criteria2->add(new Criteria('gperm_name', 'module_read'), 'OR'); + $criteria2->add(new Criteria('gperm_name', 'block_read'), 'OR'); + $criteria->add($criteria2); + $this->deleteAll($criteria); + } + /** * Check permission *