Improve and fix attachment authorisation on private messages