Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Fix Version/s: None
-
Component/s: Course
-
Labels:None
-
Environment:1.7 on Linux/Apache
-
Database:MySQL
-
Affected Branches:MOODLE_17_STABLE
Description
A participant list on course level shows all course creators on site-level, even when they have never accessed the course.
A solution maybe:
user/index.php, Line 348, set "OR ul.courseid IS NOT NULL" instead of "OR ul.courseid IS NULL"
$where = "WHERE (r.contextid = $context->id OR r.contextid in $listofcontexts)
AND u.deleted = 0 $selectrole
AND (ul.courseid = $course->id OR ul.courseid IS NOT NULL)
AND u.username <> 'guest' ";
$where .= get_lastaccess_sql($accesssince);
Hi,
They should still show up as course creators regardless of whether they have accessed the course or not. However, if you do not want them to show up you can use the hidden role assignment function (in 1.8).
Cheers,
Yu