Protect against a multiple stimulus on a set based on an abstract class.

SVN:trunk[1332]
This commit is contained in:
Denis Flaven
2011-07-05 14:07:02 +00:00
parent 52fb63c0ee
commit 7c9d4c76a9

View File

@@ -905,6 +905,8 @@ class StimulusChecker extends ActionChecker
public function IsAllowed()
{
$sClass = $this->oFilter->GetClass();
if (MetaModel::IsAbstract($sClass)) return UR_ALLOWED_NO; // Safeguard, not implemented if the base class of the set is abstract !
$oSet = new DBObjectSet($this->oFilter);
$iActionAllowed = UserRights::IsStimulusAllowed($sClass, $this->iActionCode, $oSet);
if ($iActionAllowed == UR_ALLOWED_NO)