Roles and context management
We have now dealt with the essential tools so that we can use, modify, and create roles. Moodle offers some crucial features when working extensively with roles, which we will cover in this section. We will deal with role assignments and override allowances before assigning default roles. Then, we will learn about context freezing and conclude with best practice advice.
Allowing roles assignments and overrides
By default, some roles have the right to allow other roles to assign roles. For instance, a teacher is allowed to assign Non-editing teacher and Student roles, whereas the manager is allowed to assign all the roles except the Guest, Authenticated user, and Authenticated user on site home roles (these are automatically assigned when a user signs in for the first time). There will be instances when you wish to change the default settings; for example, a teacher should be allowed to assign roles to other teachers or when the newly created roles...