mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
3fe588bbf5
commit
53cc576dab
@ -11,6 +11,13 @@ class Folder extends File {
|
|||||||
"CanEdit" => "Group"
|
"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.
|
* Find the given folder or create it, recursively.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user