Commit fe2920ad authored by skodak's avatar skodak
Browse files

admin should not see list of courses on the frontpage when there are too many...

admin should not see list of courses on the frontpage when there are too many of them; merged from MOODLE_16_STABLE
parent d157bd5b
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment