Course enrollment for Anonymous users

Do you know in what commit the change was made? I’d be interested to understand what happened.