You get to the front of the line if you fly business elite or are in first class. In some airports they even have a separate screening station tucked away where the economy class passengers can’t see it.
The article says that the decision to let Berry and her boyfriend & baby bypass the line was made by a single officer, and this decision was not based on official policy or Berry’s membership in a frequent flyers’ club.