Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify: remove permissions

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: 1089 Views
  • hammuh
    Community Member
    15 Posts

    Uploadify: remove permissions Link to this post

    Hi UC.
    I created a website with a frondend DOM, so registrated users can create and modify their objects without logging in in the CMS. The object has a 'has_many' relation with the object 'VillaImages' managed by a IDOM. If you click on an object in the IDOM there is an uploadify ImageUploadField. The problem is that people can remove the image by clicking the 'x' in de ImageUploadField and after that saving the 'VillaImage' object. Than there is an Object with just a title and no image. Is there a way to remove the delete permission in the upload field? I tried $uploadfield->allowed_actions = array('upload', 'refresh'); But that didn't do anything. In the defaults there is no such thing as 'canDelete', so the method setVal is no option.
    Do you have a solution?

    Thanks in advance,
    Frank van der Hammen

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.