Block time logging on specific issue status
Set new Workflow Property
You can set a workflow property to ensure that users can’t log time on a specific issue status. Mostly, this is useful to prevent users from logging in to closed issues.
Go to Jira Settings > Issues > Workflows.
Find the appropriate workflow and click Edit.
Select the Status where logging should be restricted

Select Properties in the modal box that appears
Add '
jira.permission.work.denied
' to the Property Key in the Add New Property formSet the Property Value as True

You can put a workflow Property on any transition, not only DONE.