when you ask said lender for a loan, you will sign a release that allows them to obtain your credit report and show it to you.
If you are applying for credit, you may give permission for a credit review. Otherwise, your credit cannot be reviewed without your permission.