From 8f21b9dabb6f2ee9d92a5040ca1507be37634a64 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 1 Sep 2011 10:49:56 +0000 Subject: [PATCH] Bug fix: prevent a warning when doing modify-all as a non-admin user. SVN:trunk[1549] --- core/userrights.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index fbcc3a97ca..e65571ce2f 100644 --- a/core/userrights.class.inc.php +++ b/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