Update of /cvsroot/xoops/xoops-current/html/class
In directory usw-pr-cvs1:/tmp/cvs-serv26524
Modified Files:
xoopsuser.php
Log Message:
no message
Index: xoopsuser.php
===================================================================
RCS file: /cvsroot/xoops/xoops-current/html/class/xoopsuser.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** xoopsuser.php 12 Aug 2002 20:29:15 -0000 1.7
--- xoopsuser.php 18 Sep 2002 10:58:37 -0000 1.8
***************
*** 259,266 ****
function isAdmin($moduleid=0){
! if ( empty($this->groups) ) {
! $this->groups =& $this->groups();
! }
! if ( XoopsGroup::checkRight("module", $moduleid, $this->groups, "A") ) {
return true;
}
--- 259,263 ----
function isAdmin($moduleid=0){
! if ( XoopsGroup::checkRight("module", $moduleid, $this->getGroups(), "A") ) {
return true;
}
***************
*** 293,298 ****
* returns an array of group ids this user belongs
*/
! function &groups(){
! return XoopsGroup::getByUser($this);
}
--- 290,298 ----
* returns an array of group ids this user belongs
*/
! function &getGroups(){
! if (empty($this->groups)) {
! return XoopsGroup::getByUser($this);
! }
! return $this->groups;
}
|