diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index 6df66641f..94cca9853 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -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)