Преглед изворни кода

Bug fix: computation of allowed stimuli was wrong

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1495 a333f486-631f-4898-b8df-5754b55c2be0
dflaven пре 13 година
родитељ
комит
41b60b1cb7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      core/userrights.class.inc.php

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

@@ -933,7 +933,7 @@ class StimulusChecker extends ActionChecker
 					// of IsActionAllowed does not perform a 'per instance' check, we could
 					// skip this second validation phase and assume it would return UR_ALLOWED_YES
 					$oObjSet = DBObjectSet::FromArray($sClass, array($oObj));
-					if (UserRights::IsActionAllowed($sClass, $this->iActionCode, $oObjSet) == UR_ALLOWED_NO)
+					if (!UserRights::IsStimulusAllowed($sClass, $this->iActionCode, $oObjSet))
 					{
 						$this->aAllowedIDs[$oObj->GetKey()] = false;
 					}