Jelajahi Sumber

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 tahun lalu
induk
melakukan
fdbdf813e8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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