AnsweredAssumed Answered

[URGENT] preventing node delete with policy

Question asked by tonc on Oct 26, 2009
Latest reply on Oct 30, 2009 by zaizi
Hi all,

I have a policy that automatically adds/removes associations depending on the content.
I would like to be able to block a delete of a node if it is the targetnode of such an association.
What is the best way to do this? Just throw an exception in the beforeDeleteNode() (when using BeforeDeleteNodePolicy) or use some kind of lock/permission together with the association?
Help would be greatly appreciated!