diff --git a/model/DataObject.php b/model/DataObject.php index 7fb3e3f96..8c65a8aa1 100644 --- a/model/DataObject.php +++ b/model/DataObject.php @@ -2591,6 +2591,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity * @return boolean */ public function canView($member = null) { + $extended = $this->extendedCan(__FUNCTION__, $member); + if($extended !== null) { + return $extended; + } return Permission::check('ADMIN', 'any', $member); } @@ -2599,6 +2603,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity * @return boolean */ public function canEdit($member = null) { + $extended = $this->extendedCan(__FUNCTION__, $member); + if($extended !== null) { + return $extended; + } return Permission::check('ADMIN', 'any', $member); } @@ -2607,6 +2615,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity * @return boolean */ public function canDelete($member = null) { + $extended = $this->extendedCan(__FUNCTION__, $member); + if($extended !== null) { + return $extended; + } return Permission::check('ADMIN', 'any', $member); } @@ -2617,6 +2629,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity * @return boolean */ public function canCreate($member = null) { + $extended = $this->extendedCan(__FUNCTION__, $member); + if($extended !== null) { + return $extended; + } return Permission::check('ADMIN', 'any', $member); }