Prevent users from deleting attachments if they can't delete the parent feature

658
2
09-02-2022 08:44 AM
Status: Open
DavidSolari
Occasional Contributor III

Quoting the latest docs:

For layers in the feature service that can store attachments, the Create or Update operation allows editors of the feature service to add an attachment to a feature. The Update operation further enables editors to update or delete an attachment that is associated with a feature. If only the Delete operation is enabled, editors can delete attachments.

I can't think of a single scenario where the user would be forbidden from deleting a feature, but should be able to delete that feature's attachments. Please align the attachment permissions with the feature permissions so that users must have delete permissions to delete attachments.

2 Comments
CaseyS
by

We have a requirement that states photos cannot contain any people in the picture. Deleting a photo that violates this rule does not require the associated feature data to be deleted. Reviewers should have this ability. In some cases there maybe up to 12 photos with a single feature. 11 good ones can remain and one bad one be removed and the whole thing does not have to be sent back to the feature owner for this update.

ChristopherCounsell

@DavidSolari great idea, this should have way more traction. Working with photos in ArcGIS Online/Enterprise is a disaster.

ArcGIS Online equivalent idea: https://community.esri.com/t5/arcgis-online-ideas/allow-users-to-add-attachments-but-not-delete/idi-...