Upvote:2
As you originate in a Schengen country and connect in a Schengen country, flying to another Schengen country, these should be treated as domestic flights and you should not have to go through security, as long as your flights arrive at and depart from the same terminal in Barcelona.
Visit this website to see the official clearance procedures... excerpted material:
For passengers in transit arriving and departing terminal T1 without their next boarding pass, self check-in kiosk are also available at the boarding area, but only for Air France-KLM, Austrian Airlines, Croatia Airlines and Lufthansa airlines. T1, boarding area, corridor connecting floor 2 (self check-in kiosk: Air France-KLM, Austrian Airlines, Croatia Airlines and Lufthansa). T1, boarding area B, floor 1 (self check-in kiosk: Air France-KLM, Austrian Airlines, Croatia Airlines and Lufthansa) The passengers in transit terminal T1 without their next boarding pass. or passengers with luggage that is not checked to destination, must leave the boarding area and go to the check-in counter airline of their next flight.
For passengers in transit arriving and departing terminal T2 (T2A, T2B or T2C), who already have their boarding pass, without luggage or baggage checked to destination, it is not necessary to leave the boarding area as the boarding areas of the terminal T2 (T2A, T2B and T2CC) are linked together by a corridor, and the maximum walking distance between them is 7 minutes. The passengers in transit terminal T2 without their next boarding pass. or passengers with luggage that is not checked to destination, must leave the boarding area and go to the check-in counter airline of their next flight.