Skip to content

Commit

Permalink
Forcelogin works on user profiles, and a new setting can now forcelogin
Browse files Browse the repository at this point in the history
just for these pages even if the site forcelogin is off.

   $CFG->forceloginforprofiles
  • Loading branch information
moodler committed May 3, 2004
1 parent e5f8351 commit 1ffb5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
error("No such course id");
}

if ($course->category) {
if ($course->category or $CFG->forcelogin or !empty($CFG->forceloginforprofiles)) {
require_login($course->id);
}

Expand Down

0 comments on commit 1ffb5c8

Please sign in to comment.