From cff1cf10d3ac02c0ef80afb55b28f34edf06ec3a Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 12 May 2010 06:00:25 +0000 Subject: [PATCH] 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 --- core/model/Translatable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/model/Translatable.php b/core/model/Translatable.php index 2d3e87a5b..86cf18b69 100755 --- a/core/model/Translatable.php +++ b/core/model/Translatable.php @@ -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; } /**