Add authentication check for the Rebuild link