AnsweredAssumed Answered

How to prevent adding/editing with AttachmentEditor?

Question asked by PavelVeselsky on Jun 5, 2016
Latest reply on Jun 9, 2016 by PavelVeselsky

I have a WAB (for developers, version 1.4, JS API 3.16) widget with an AttachmentEditor. Depending on the user's privileges (managed through MVC), I want to prevent some of the users from modifying the attachments (this I can do by hiding the editor) and still showing them the attachments, but I found no way to let the editor show the attachments without permitting the user to add/delete them. Do I need to hack the editor code and use the tweaked version, or is there any clean option to do this? Bypassing AttachmentEditor completely seems to be the hardest way, so I hope it is not necessary.

 

This is reposted from GIS.stackexchange.com.

Outcomes