Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Allow role overrides.

Allow role overrides

From MoodleDocs

Location: Administration > Users > Permissions > Define roles


This page is for setting which roles can be overridden by each role.

Note that these settings only apply to users who have the capability moodle/role:override allowed (or, in Moodle 1.9.3 onwards, the capability moodle/role:safeoverride allowed).

The default administrator role has the capability moodle/role:override allowed, and all the boxes in the administrator row are checked by default, meaning that admins can override permissions for all other roles.

Enabling teachers to set role overrides

Allow role overrides in Moodle 1.8

To enable teachers to set role overrides, you need to first allow the capability to override roles and then set which role(s) teachers can override.

  1. Access Administration > Users > Permissions > Define roles.
  2. Edit the teacher role and change the capability moodle/role:override (or moodle/role:safeoverride in Moodle 1.9.3 onwards) to allow.
  3. Click the button "Save changes".
  4. Click the tab "Allow role overrides" (in Administration > Users > Permissions > Define roles)
  5. Check the appropriate box(s) in the teacher row to set which role(s) teachers can override. Most likely it will just be the student role (you don't want teachers to be able to override admins), so check the box where the teacher row intersects with the student column.
  6. Click the button "Save changes".