Open bennettscience opened 2 years ago
Return an empty list when someone visits the preferences page and has no enrollments.
File "app/blueprints/home_blueprint.py", line 23, in user_preferences courses = current_user.enrollments.all()
Nevermind. It's only for anonymous users.
Send someone to the login page if they're not logged in and they click on Preferences.
Return an empty list when someone visits the preferences page and has no enrollments.