Only passenger intervention stopped a heavily intoxicated pilot from flying a Citilink plane out of Juanda International Airport in Surabaya.
Security footage released online shows pilot Tekad Purna drunkenly staggering through the security check.
It shows three security staff helping him gather his belongings and picking up items he dropped, but doing nothing to stop him carrying on through the airport.
reported Mr Purna was allowed to board the plane and enter the cockpit and it was only after passengers heard him on the intercom and started complaining that he was removed.
In the wake of the incident two Citilink executives, president director of Citilink Albert Burhan and operational director Hadinoto Soedigno, have resigned.
Mr Purna has been sacked.
Citilink is the discount arm of Indonesia's national carrier Garuda Airlines.
Related reading

Indonesian militants planned New Year's Eve machete assault