Merge branch 'MDL-38414-master' of git://github.com/FMCorz/moodle
[moodle.git] / course / edit_form.php
index 2f9b3f4..ce7d8b7 100644 (file)
@@ -276,9 +276,6 @@ class course_edit_form extends moodleform {
             foreach ($roles as $role) {
                 $mform->addElement('text', 'role_'.$role->id, get_string('yourwordforx', '', $role->localname));
                 $mform->setType('role_'.$role->id, PARAM_TEXT);
-                if (!in_array($role->id, $assignableroles)) {
-                    $mform->setAdvanced('role_'.$role->id);
-                }
             }
         }