Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Delete Entrys for Editors

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 659 Views
  • nafetsch
    Avatar
    Community Member
    15 Posts

    Delete Entrys for Editors Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Delete Entrys for Editors Link to this post

    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.

  • nafetsch
    Avatar
    Community Member
    15 Posts

    Re: Delete Entrys for Editors Link to this post

    function canDelete() {
    return true;
    }

    TAAAANK YOU ... solved!

    659 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.