In Moodle before 3.9.1, 3.8.4, 3.7.7 and 3.5.13, teachers of a course were able to assign themselves the manager role within that course.
{
"versions": [
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.13"
},
{
"introduced": "3.7.0"
},
{
"fixed": "3.7.7"
},
{
"introduced": "3.8.0"
},
{
"fixed": "3.8.4"
},
{
"introduced": "0"
},
{
"last_affected": "3.9.0-NA"
}
]
}