Minahito
minah****@users*****
2006年 2月 4日 (土) 17:39:24 JST
Index: xoops2jp/html/modules/user/admin/class/Permission.class.php diff -u xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.5 --- xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.4 Fri Dec 30 17:29:28 2005 +++ xoops2jp/html/modules/user/admin/class/Permission.class.php Sat Feb 4 17:39:24 2006 @@ -49,24 +49,20 @@ function save() { $gpermHandler =& xoops_gethandler('groupperm'); - - if ($this->mValue & USER_PERMISSION_READ) { - $name = $this->mItem->getReadPermName(); - if ($name) { - $gperm =& $this->_createGperm($name); - if (!$gpermHandler->insert($gperm)) { - return false; - } + + $name = $this->mItem->getReadPermName(); + if ($name) { + $gperm =& $this->_createGperm($name); + if (!$gpermHandler->insert($gperm)) { + return false; } } - if ($this->mValue & USER_PERMISSION_ADMIN) { - $name = $this->mItem->getAdminPermName(); - if ($name) { - $gperm =& $this->_createGperm($name); - if (!$gpermHandler->insert($gperm)) { - return false; - } + $name = $this->mItem->getAdminPermName(); + if ($name) { + $gperm =& $this->_createGperm($name); + if ($gpermHandler->insert($gperm)) { + return false; } } @@ -276,7 +272,7 @@ function loadPermission($groupId) { $ret = USER_PERMISSION_NONE; - + $gpermHandler =& xoops_gethandler('groupperm'); if ($gpermHandler->checkRight("system_admin", $this->mId, $groupId)) { $ret |= USER_PERMISSION_ADMIN;