Added permissions to files attached to tickets