Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Delete Entrys for Editors


Go to End


3 Posts   940 Views

Avatar
nafetsch

Community Member, 15 Posts

19 August 2010 at 9:38pm

Edited: 19/08/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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

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.

Avatar
nafetsch

Community Member, 15 Posts

20 August 2010 at 1:58am

function canDelete() {
return true;
}

TAAAANK YOU ... solved!