mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Added check for $CFG->disablemycourses
This commit is contained in:
parent
e3ec7995a7
commit
2de48ff93d
@ -34,7 +34,7 @@ class block_course_list extends block_list {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses
|
if (empty($CFG->disablemycourses) and isset($USER->id) and !(isadmin() and $adminseesall)) { // Just print My Courses
|
||||||
if ($courses = get_my_courses($USER->id)) {
|
if ($courses = get_my_courses($USER->id)) {
|
||||||
foreach ($courses as $course) {
|
foreach ($courses as $course) {
|
||||||
if ($course->id == SITEID) {
|
if ($course->id == SITEID) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user