How to hide a list details when

Hey there ! I have a question about List details item.

I have created a page where a user can see all of his assigned missions. He can click on each item and then click on “Accept the mission” or “Refuse”.
When the mission is over or when it does not exist anymore, I would like to hide the Detail List page of the mission. So, the user can click on the mission but a message like this “Sorry, the mission isn’t available anymore” appear.

Do you know how can I manage this? Any specific conditionnal filter maybe ?

thank you a lot !!