How to hide course enroll button unless user is authenticated?

Community Novice

By default all courses in Catalog are visible to public web traffic. Anyone can view and enroll for your courses. Now, let's say you want to restrict access, only to authenticated users. The general public could still browse courses, but only a registered user could enroll and/or pay for a course. There is currently no way to accomplish this in the configuration settings.