Has anyone used the Before Asset Deleted trigger? I had assumed that if I set it up to fail for specific assets and root node, and those assets could not be deleted, but that is not the case.
What is this trigger suppose to be fired?
Also, my plan was to use this to prevent certain assets from being deleted, but it seems that I would need something like "Before Link Removed" in order to do this. Does anyone have ideas on how I can use a trigger to prevent an asset from being deleted? E.g. the site asset?
[quote]Has anyone used the Before Asset Deleted trigger? I had assumed that if I set it up to fail for specific assets and root node, and those assets could not be deleted, but that is not the case.
What is this trigger suppose to be fired?
Also, my plan was to use this to prevent certain assets from being deleted, but it seems that I would need something like "Before Link Removed" in order to do this. Does anyone have ideas on how I can use a trigger to prevent an asset from being deleted? E.g. the site asset?[/quote]
I think it is probably fired too early for that.
Do you use safe trash?
What's safe trash?
[quote]I think it is probably fired too early for that.
Do you use safe trash?[/quote]
Sorry, I worded it wrong. "When" is it suppose to fire?
Safe trash makes sure that all links are removed from an asset before it can be deleted. Any I think the assets also have to be under construction.
Anyone have ideas on this?
I would like users to have write access to assets, as they need to be able to get locks and view body copies. But I cannot allow them to delete or move files.
Ideas?
UPDATE: Ok, I set up Safe Trash and I think it will work well. I also made a trigger that fires on status change if a user is not a system admin, the trigger then fails with a strict warning. Now to prevent users from moving assets…