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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
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
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.
Thanks FWS, that works for me. Of course I made a copy and added to mysite > templates so I could override the original.
:-)