7762 Posts in 1289 Topics by 886 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 165 Views |
-
Content Authors can't delete images (DOM within a DOM)

4 October 2011 at 4:14pm
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
-
Re: Content Authors can't delete images (DOM within a DOM)

7 October 2011 at 2:20am
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.
-
Re: Content Authors can't delete images (DOM within a DOM)

7 October 2011 at 2:47pm
Thanks FWS, that works for me. Of course I made a copy and added to mysite > templates so I could override the original.
| 165 Views | ||
|
Page:
1
|
Go to Top |


