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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Delete Entrys for Editors


Reply


3 Posts   700 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, 4094 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!