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

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 9月 25日 (月) 18:39:28 JST


Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php
diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.8 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9
--- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.8	Mon Sep 25 08:10:16 2006
+++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php	Mon Sep 25 18:39:28 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package user
- * @version $Id: AvatarEditAction.class.php,v 1.1.2.8 2006/09/24 23:10:16 minahito Exp $
+ * @version $Id: AvatarEditAction.class.php,v 1.1.2.9 2006/09/25 09:39:28 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -133,13 +133,13 @@
 	 * 2) A current user has to equal the specified user, or a current user has
 	 *    to be a administrator.
 	 */
-	function hasPermission(&$controller, &$xoopsUser)
+	function hasPermission(&$controller, &$xoopsUser, $moduleConfig)
 	{
 		if (!is_object($this->mObject)) {
 			return false;
 		}
 
-		if ($this->mObject->isAdmin()) {	//< FIXME
+		if ($xoopsUser->isAdmin()) {	//< FIXME
 			return true;
 		}
 		elseif ($this->mObject->get('uid') == $xoopsUser->get('uid')) {


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index