Permalink
Browse files

MDL-xxxx show appropriate instance status on user enrolments page

  • Loading branch information...
1 parent a201a0f commit 0431cc0e16d9855b0adcc7b4612838f6407f462f @skodak skodak committed with danpoltawski Dec 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/locallib.php
View
@@ -867,7 +867,7 @@ public function get_users_for_display(course_enrolment_manager $manager, $sort,
$details['enrolments'][$ue->id] = array(
'text' => $ue->enrolmentinstancename,
'period' => $period,
- 'dimmed' => ($periodoutside || $ue->status != ENROL_USER_ACTIVE),
+ 'dimmed' => ($periodoutside or $ue->status != ENROL_USER_ACTIVE or $ue->enrolmentinstance->status != ENROL_INSTANCE_ENABLED),
'actions' => $ue->enrolmentplugin->get_user_enrolment_actions($manager, $ue)
);
}

0 comments on commit 0431cc0

Please sign in to comment.