** Added security check into publication file retrieving