Browse Source

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 years ago
parent
commit
b5fdc2ea2a
1 changed files with 2 additions and 2 deletions
  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>';
 		}