admin should not see list of courses on the frontpage when there are too many of them; merged from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-07-19 13:37:09 +00:00
parent d157bd5b28
commit fe2920ad54
+2 -1
View File
@@ -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);
}