Forcelogin works on user profiles, and a new setting can now forcelogin just for these pages even if the site forcelogin is off.
Forcelogin works on user profiles, and a new setting can now forcelogin
just for these pages even if the site forcelogin is off.

   $CFG->forceloginforprofiles

dilawar/moodle