7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Delete Entrys for Editors
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 511 Views |
-
Delete Entrys for Editors

19 August 2010 at 9:38pm Last edited: 19 August 2010 9:40pm
I managed the problem that i only could upload with admins (search the forum for CMS_ACCESS_CMSMain -> thats the solutiuon).
But know i find out that editors can´t delete entrys. for example with FileDataObjectManager.
do anyone know how i can fix that?
thank you.
-
Re: Delete Entrys for Editors

20 August 2010 at 1:31am
You need to define a canDelete() method on your DataObject. I think it's a 2.4 thing. It used to assume true, but now it assumes false if there's no method defined. I haven't confirmed that, though.
-
Re: Delete Entrys for Editors

20 August 2010 at 1:58am
function canDelete() {
return true;
}TAAAANK YOU ... solved!
| 511 Views | ||
|
Page:
1
|
Go to Top |

