Browse Source

Bug fix: prevent a warning when doing modify-all as a non-admin user.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1549 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 years ago
parent
commit
fdbdf813e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/userrights.class.inc.php

+ 1 - 1
core/userrights.class.inc.php

@@ -849,7 +849,7 @@ class ActionChecker
 	{
 		$sClass = $this->oFilter->GetClass();
 		$oSet = new DBObjectSet($this->oFilter);
-		$iActionAllowed = UserRights::IsActionAllowed($sClass, $oSet, $this->iActionCode);
+		$iActionAllowed = UserRights::IsActionAllowed($sClass, $this->iActionCode, $oSet);
 		if ($iActionAllowed == UR_ALLOWED_DEPENDS)
 		{
 			// Check for each object if the action is allowed or not