Minahito
minah****@users*****
2006年 10月 15日 (日) 15:09:31 JST
Index: xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9.2.1 xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9.2.2 --- xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9.2.1 Sat Oct 7 15:30:09 2006 +++ xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php Sun Oct 15 15:09:31 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: AvatarSelectAction.class.php,v 1.1.2.9.2.1 2006/10/07 06:30:09 ryuji_amano Exp $ + * @version $Id: AvatarSelectAction.class.php,v 1.1.2.9.2.2 2006/10/15 06:09:31 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -78,7 +78,7 @@ return false; } - if ($xoopsUser->isAdmin()) { //< FIXME + if ($controller->mRoot->mContext->mUser->isInRole('Module.user.Admin')) { return true; } elseif ($this->mObject->get('uid') == $xoopsUser->get('uid')) {