Only Superusers and Intermediate/Full Access Class Admins can do this.
You can make the call-to-action registration buttons for 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 Registration Visibility dropdown and select the desired visibility.
When finished, click Save.