Skip to content

Commit

Permalink
MDL-xxxx show appropriate instance status on user enrolments page
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak authored and danpoltawski committed Jan 8, 2013
1 parent cb838a3 commit f923f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/locallib.php
Expand Up @@ -926,7 +926,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)
);
}
Expand Down

0 comments on commit f923f7a

Please sign in to comment.