fix typos in namepsace
pass $user into hasRole
remove messages before removing ticket