mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-xxxx show appropriate instance status on user enrolments page
This commit is contained in:
parent
a201a0ff4e
commit
0431cc0e16
1 changed files with 1 additions and 1 deletions
|
@ -867,7 +867,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…
Add table
Add a link
Reference in a new issue