Avoid deletion of tasks with time logs

I need to prevent people from deleting tasks that already have linked time logs.
The only way I can think of is to write an event listener plugin that reacts to retirement of tasks, checvks if they have time logs and if so, unretire them.
Is there a better way though?

This sounds logical to me.

Another way would be to ask SG to add a conditional permission to disallow users to delete a task if it has time logs linked.

Thanks for confirming, I shall do both

1 Like