소스 검색

Grant Summary on profiles was saying no for everything

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@786 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 년 전
부모
커밋
b5fdc2ea2a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      addons/userrights/userrightsprofile.class.inc.php

+ 2 - 2
addons/userrights/userrightsprofile.class.inc.php

@@ -82,8 +82,8 @@ class URP_Profiles extends UserRightsBaseClass
 
 	function GetGrantAsHtml($oUserRights, $sClass, $sAction)
 	{
-		$oGrant = $oUserRights->GetProfileActionGrant($this->GetKey(), $sClass, $sAction);
-		if (is_object($oGrant) && ($oGrant->Get('permission') == 'yes')) 
+		$iGrant = $oUserRights->GetProfileActionGrant($this->GetKey(), $sClass, $sAction);
+		if (!is_null($iGrant))
 		{
 			return '<span style="background-color: #ddffdd;">'.Dict::S('UI:UserManagement:ActionAllowed:Yes').'</span>';
 		}