The rule applies to every one if carrying passengers but a student is a crew member not a passenger. Article 155 definitions
‘Crew’ means a member of the flight crew, a person carried on the flight deck who is appointed by the operator of the aircraft to give or to supervise the training, experience, practice and periodical tests required in respect of the flight crew under article 42(3) or a member of the cabin crew;
‘Passenger’ means a person other than a member of the crew;