mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-xxxx show appropriate instance status on user enrolments page
This commit is contained in:
parent
0dc5a532ec
commit
3a103fd806
@ -926,7 +926,7 @@ class course_enrolment_manager {
|
||||
$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)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user