In response to the incident and the circumstances of the co-pilot's involvement, aviation authorities in some countries implemented new regulations that require the presence of two authorised personnel in the cockpit at all times.
So if a pilot has to visit the lavatory, a flight attendant or some other qualified person has to replace the pilot on the flight deck (not in actual duty of course, just not leaving a single person alone there).