Tidy up admin attachments controller

A little bit of tidying up for the attachments controller that I didn't get a chance to do before the Christmas code freeze.