We fixed a bug with course creation whereby the default course role was given regardless of whether it should be.
Essentially, in order to assign a role, you need two things:
1) The moodle/role:assign capability; and
2) The ability to assign the specified role (Site administration -> Users -> Define role -> Allow role assignments)
Unfortunately the default "Course creator" role has neither of these.
We may need to consider adding this to stables in an upgrade step, but this is unusual for stables. I suspect we should accept such a change in our next minor release and grant the assign to the coursecreator archetype for the current default role only.
- the moodle/role:assign capability; and
- the ability to assign the specified role.
The coursecreator role as neither of these
Further information relating to this from Urpo Karhula:
It seems that
is badly implemented since I didn't find any documentation concerning this change in moodle documentation.
Suddenly making this scope of a change should be better documented in Moodle documentation and also you should inform moodle administratos if this scope of a change is going to happen (one forum post doesn't really cut it).
To get it working again you now have to give coursecreator moodle/role:assign before they can get teacher role on the courses they create.
Also moodle/role:assign is concerned as a XSS-risk, risk of gaining other users information and users can spam other useers.