​You have a window of 15 minutes getting through the Security check and into the Sagrada Familia. If you are too late, you will be refused by the Security-Team. My recommendation: Better being a bit early, checking out the situation.