Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
admin should not see list of courses on the frontpage when there are …
…too many of them; merged from MOODLE_16_STABLE
  • Loading branch information
skodak committed Jul 19, 2006
1 parent d157bd5 commit fe2920a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
Expand Up @@ -160,7 +160,8 @@
if (isloggedin() && !isset($USER->admin) && empty($CFG->disablemycourses)) {
print_heading_block(get_string('mycourses'));
print_my_moodle();
} else {
} else if (!isadmin() or (count_records('course') <= FRONTPAGECOURSELIMIT)) {
// admin should not see list of courses when there are too many of them
print_heading_block(get_string('availablecourses'));
print_courses(0, '100%', true);
}
Expand Down

0 comments on commit fe2920a

Please sign in to comment.