Bug fix: computation of allowed stimuli was wrong

SVN:trunk[1495]
This commit is contained in:
Denis Flaven
2011-08-23 09:17:19 +00:00
parent a04e7ea375
commit 54315f41e4

View File

@@ -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;
}