Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Content Authors can't delete images (DOM within a DOM)

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: 457 Views
  • socks
    Avatar
    Community Member
    190 Posts

    Content Authors can't delete images (DOM within a DOM) Link to this post

    Just found out that unless a user has Full Administrative Rights, the little trash can icon won't show up on my ImageDataObjectManager within a DataObjectManager.

    Any fixes to allow the Content Authors the ability to delete images?

    Thanks

  • FullWebService
    Avatar
    Community Member
    38 Posts

    Re: Content Authors can't delete images (DOM within a DOM) Link to this post

    I had the same problem.

    I tried adding $manager->addPermission('delete'); to my code... but that didn't work.

    In the end I edited the ImageDataObjectManager.ss template and deleted the if Can(delete) tag on line 72.

    Not how it should be done, I'm sure... but it works.

  • socks
    Avatar
    Community Member
    190 Posts

    Re: Content Authors can't delete images (DOM within a DOM) Link to this post

    Thanks FWS, that works for me. Of course I made a copy and added to mysite > templates so I could override the original.

    457 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.