Expression to limit DELETE action on viewpoint
Summary:
We need to be able to filter the ability to delete nodes from a given node type.
Content (please ensure you mask any confidential information):
I have written a validation that should prevent nodes from being deleted if they are an ancestor of a given parent.
I have setup the validation to only fire on the DELETE action and I have added the below expression.
I am expecting that anytime I try and delete a node that falls under the "NETINC" section of the hierarchy that the validation will fail. But in my testing, this validation never fires.
I do recall sometime back that there was an issue where the DELETE action caused EDM to no longer know the context of where it was in the hierarchy (ancestors) so it would not correctly identify, and a validation of this type would not work.