Only Superusers and Intermediate/Full Access Class Admins can do this.
You can make classes visible to all, logged-in users, or only admins on the class registration page.
In the side menu click Classes > Class Admin.
Click the gear icon by the desired class.
Click the Class Visibility dropdown and select the desired visibility.
When finished, click Save.