瀏覽代碼

Profiles defined in XML: fixed regression preventing from creating an object

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2185 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 年之前
父節點
當前提交
6c8a6cc725
共有 1 個文件被更改,包括 1 次插入9 次删除
  1. 1 9
      addons/userrights/userrightsprofile.class.inc.php

+ 1 - 9
addons/userrights/userrightsprofile.class.inc.php

@@ -766,15 +766,7 @@ exit;
 		// Note: The object set is ignored because it was interesting to optimize for huge data sets
 		//       and acceptable to consider only the root class of the object set
 		$aObjectPermissions = $this->GetUserActionGrant($oUser, $sClass, $iActionCode);
-		$aAttributes = $aObjectPermissions['attributes'];
-		if (in_array($sAttCode, $aAttributes))
-		{
-			return $aObjectPermissions['permission'];
-		}
-		else
-		{
-			return UR_ALLOWED_NO;
-		}
+		return $aObjectPermissions['permission'];
 	}
 
 	// This verb has been made public to allow the development of an accurate feedback for the current configuration