That requirement became widespread after Germanwings 9525, which happened a year later.
"Aviation authorities swiftly implemented new recommendations from the European Union Aviation Safety Agency that required two authorised personnel in the cockpit at all times, but by 2017, Germanwings and other German airlines had dropped the rule."