[xoops-cvslog 1359] CVS update: xoops2jp/html/modules/user/admin/class

Back to archive index

Minahito minah****@users*****
2005年 12月 25日 (日) 00:03:28 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.2 xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.3
--- xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.2	Sat Dec 24 19:11:07 2005
+++ xoops2jp/html/modules/user/admin/class/Permission.class.php	Sun Dec 25 00:03:28 2005
@@ -27,14 +27,17 @@
 		return $this->mItem->getId();
 	}
 	
+	function getValue()
+	{
+		return $this->mValue;
+	}
+
 	function setValue($value)
 	{
 		$value = intval($value);
-		if ($value >= USER_PERMISSION_NONE && $value <= USER_PERMISSION_ADMIN) {
-			$this->mValue = $value;
-		}
+		$this->mValue = $value & ( USER_PERMISSION_READ | USER_PERMISSION_ADMIN );
 	}
-
+	
 	function _load()
 	{
 		$this->mValue = $this->mItem->loadPermission($this->mGroupId);


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