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 (from r104678)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112366 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3135c96fc9
commit
c9563c48b7
@ -1212,8 +1212,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