Merge branch 'MDL-43250-24' of git://github.com/damyon/moodle into MOODLE_24_STABLE

This commit is contained in:
Sam Hemelryk
2013-12-24 11:03:51 +13:00
+2 -2
View File
@@ -3406,8 +3406,8 @@ class assign {
$potentialgraders = get_enrolled_users($this->context, "mod/assign:grade");
$graders = array();
if (groups_get_activity_groupmode($this->get_course_module()) == SEPARATEGROUPS) { // Separate groups are being used
if ($groups = groups_get_all_groups($this->get_course()->id, $userid)) { // Try to find all groups
if (groups_get_activity_groupmode($this->get_course_module()) == SEPARATEGROUPS) {
if ($groups = groups_get_all_groups($this->get_course()->id, $userid, $this->get_course_module()->groupingid)) {
foreach ($groups as $group) {
foreach ($potentialgraders as $grader) {
if ($grader->id == $userid) {