Fetch permissions from the parent field (Fixes #218)

This commit is contained in:
Will Rossiter 2014-07-06 17:35:46 +12:00
parent fead9d00c6
commit 29d59693ac

View File

@ -26,6 +26,24 @@ class EditableOption extends DataObject {
"Versioned('Stage', 'Live')"
);
/**
* @param Member $member
*
* @return boolean
*/
public function canEdit($member = null) {
return ($this->Parent()->canEdit($member));
}
/**
* @param Member $member
*
* @return boolean
*/
public function canDelete($member = null) {
return ($this->Parent()->canDelete($member));
}
/**
* Template for the editing view of this option field
*/