Narrative:

When the captain left the flight deck to take a bathroom break he failed to allow a flight attendant into the flight deck. The captain proceeded to the lavatory and once he realized he didn't allow a flight attendant to enter the flight deck; realized his mistake and called up to the first officer. The first officer answered the call and allowed the captain back into the flight deck. The flight continued uneventfully. Anytime leaving the flight deck allow a flight attendant to access the flight deck. Once the captain shut the door to the flight deck a flight attendant should have said something right away to the captain; reminding him that a flight attendant must occupy the flight deck and there should be two crew members in the flight deck at all times.

Google
 

Original NASA ASRS Text

Title: Air carrier flight crew reported the Captain mistakenly shut the cockpit door before a Flight Attendant went into the cockpit during a bathroom break.

Narrative: When the Captain left the flight deck to take a bathroom break he failed to allow a Flight Attendant into the flight deck. The Captain proceeded to the lavatory and once he realized he didn't allow a Flight Attendant to enter the flight deck; realized his mistake and called up to the First Officer. The First Officer answered the call and allowed the Captain back into the flight deck. The flight continued uneventfully. Anytime leaving the flight deck allow a Flight Attendant to access the flight deck. Once the Captain shut the door to the flight deck a Flight Attendant should have said something right away to the Captain; reminding him that a Flight Attendant must occupy the flight deck and there should be two Crew Members in the flight deck at all times.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.