mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Fixed Translatable::canEdit() to suit new permission customisation scheme
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@104678 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9e56293931
commit
cff1cf10d3
@ -1205,8 +1205,8 @@ class Translatable extends DataObjectDecorator implements PermissionProvider {
|
||||
* @return boolean
|
||||
*/
|
||||
function canEdit($member) {
|
||||
if(!$this->owner->Locale) return true;
|
||||
return $this->owner->canTranslate($member, $this->owner->Locale);
|
||||
if(!$this->owner->Locale) return null;
|
||||
return $this->owner->canTranslate($member, $this->owner->Locale) ? null : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user