Permalink
Browse files

Use forcelogin on site files if it's defined bug 1486

  • Loading branch information...
1 parent 6bda940 commit f57cd38b824fdcd9f4e49b66542e38d57b78b7bd moodler committed May 28, 2004
Showing with 2 additions and 0 deletions.
  1. +2 −0 file.php
View
@@ -36,6 +36,8 @@
if ($course->category) {
require_login($courseid);
+ } else if ($CFG->forcelogin) {
+ require_login();
}
// it's OK to get here if no course was specified

0 comments on commit f57cd38

Please sign in to comment.