Fix measure control appearing twice in forms
Fix permission check on attachments