How to restrict users from editing an inactive ticket?