Closed sigdestad closed 4 years ago
Done. If the user has a role that has write permissions on the form content, the widget is shown.
Does it have to be a role? What if it is a group or transitive membership or directly on the user?
Ah, all the perspectives that I've never had to consider before, when I was used to the content library resolving everything for me automagically ;-)
From the context, you should be able to get all principals (even the transitive ones) and then see if any of these have write permission on the item.
Write permission checks in the widget panel have now been implemented and will be part of the 2.1 release (rudimentary support for file inputs and downloading of files from reports)
Add this check to the widget panel