mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Fetch permissions from the parent field (Fixes #218)
This commit is contained in:
parent
fead9d00c6
commit
29d59693ac
@ -26,6 +26,24 @@ class EditableOption extends DataObject {
|
|||||||
"Versioned('Stage', 'Live')"
|
"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
|
* Template for the editing view of this option field
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user