Ensure that task_type param is an allowed TaskType
Merge pull request #526 from Tahi-project/constantizification

Security Fix: Do not allow arbitrary task types from params to be constantized directly