added a check for the export resource whether the user is actually able to add a attachment.