Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
41b60b1cb7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 					}