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

Allow role overrides: Difference between revisions

From MoodleDocs
(moodle/role:safeoverride update)
Line 8: Line 8:
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|override permissions]] for all other roles.
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|override permissions]] for all other roles.


{{Moodle 1.9}}In Moodle 1.9.3 onwards, the default teacher role has the capability moodle/role:safeoverride allowed, and the non-editing teacher, student and guest boxes in the teacher row are checked by default, meaning that teachers can override certain permissions (i.e. ones without major risks attached to them) for these roles.
==Enabling teachers to set role overrides==
 
==Enabling teachers to set role overrides (pre-1.9.3)==


[[Image:Administration Block Site Roles AllowRoleOverrides.JPG|thumb|Allow role overrides in Moodle 1.8]]
[[Image:Administration Block Site Roles AllowRoleOverrides.JPG|thumb|Allow role overrides in Moodle 1.8]]
To enable teachers to set role overrides in versions of Moodle prior to 1.9.3, you need to first allow the capability to override roles and then set which role(s) teachers can override.
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.


#Access ''Administration > Users > Permissions > Define roles''.
#Access ''Administration > Users > Permissions > Define roles''.
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] (or moodle/role:safeoverride in Moodle 1.9.3 onwards) to allow.
#Click the button "Save changes".
#Click the button "Save changes".
#Click the tab "Allow role overrides" (in ''Administration > Users > Permissions > Define roles'')
#Click the tab "Allow role overrides" (in ''Administration > Users > Permissions > Define roles'')

Revision as of 11:28, 28 July 2008

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".