How long before you can fly after surgery

I am awaiting scan results to see whether i need further back surgery (very likely), so just wondered if anyone knows if there are any restrictions re:flying and timescale. Thanks everyone in advance 

ICR Travel Holiday Forum for Icmeler & Marmaris with reviews of hotels and real customer reports
https://www.icmeleronline.com/forum/
https://www.icmeleronline.com/forum/viewtopic.php?f=32&t=9789