You can fly with a history of gout and allopurinol, the medication used to treat gout. The issue is the amount of pain you may have. If you have enough pain to have to take pain medications, you should ground yourself until the acute episode has subsided, then you may return to flying.