[xoops-cvslog 5325] CVS update: xoops2jp/html/modules/user/actions

Back to archive index

Minahito minah****@users*****
2006年 10月 15日 (日) 15:07:01 JST


Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php
diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.2 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.3
--- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.2	Fri Oct 13 15:50:34 2006
+++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php	Sun Oct 15 15:07:01 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: AvatarEditAction.class.php,v 1.1.2.9.2.2 2006/10/13 06:50:34 minahito Exp $
+ * @version $Id: AvatarEditAction.class.php,v 1.1.2.9.2.3 2006/10/15 06:07:01 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -135,7 +135,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')) {


xoops-cvslog メーリングリストの案内
Back to archive index