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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1293 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!