Reverted Folder::CanEdit() to its original behaviour; that of returning a many-many join. Note that this conflicts with DataObject::CanEdit() now.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60911 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-08-18 00:51:35 +00:00
parent 3fe588bbf5
commit 53cc576dab

View File

@ -11,6 +11,13 @@ class Folder extends File {
"CanEdit" => "Group"
);
/**
* @todo: DataObject::CanEdit() is a permission checking function; the CanEdit relation should be renamed to Editors or something
*/
function CanEdit() {
return $this->getManyManyComponents('CanEdit');
}
/*
* Find the given folder or create it, recursively.
*