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

Role permissions: Difference between revisions

From MoodleDocs
(list of capabilities, templates, category)
 
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Roles}}
{{Roles}}{{Moodle 1.7}}Roles and capabilities in Moodle 1.7 onwards enable possibilities such as teachers being given permission to override permissions for other roles.
{{Moodle 1.7}}
 
==Role capabilities==
 
The following capabilities are related to roles:
The following capabilities are related to roles:


Line 6: Line 8:
* [[Capabilities/moodle/role:manage|moodle/role:manage]]
* [[Capabilities/moodle/role:manage|moodle/role:manage]]
* [[Capabilities/moodle/role:override|moodle/role:override]]
* [[Capabilities/moodle/role:override|moodle/role:override]]
* [[Capabilities/moodle/role:safeoverride|moodle/role:safeoverride]] (1.9.3 onwards)
* [[Capabilities/moodle/role:switchroles|moodle/role:switchroles]]
* [[Capabilities/moodle/role:switchroles|moodle/role:switchroles]]
* [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]]
* [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]]
* [[Capabilities/moodle/role:viewhiddenassigns|moodle/role:viewhiddenassigns]]
* [[Capabilities/moodle/role:viewhiddenassigns|moodle/role:viewhiddenassigns]]


[[Category:Roles]]
==Enabling teachers to override permissions==
 
By default, only administrators are able to override permissions. To enable teachers to do so:
#Access ''Administration > Users > Permissions > Define roles''.
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] (or [[Capabilities/moodle/role:safeoverride|moodle/role:safeoverride]] in Moodle 1.9.3 onwards) to allow.
#Click the button "Save changes".
#Click the tab "[[Allow role overrides]]" (in ''Administration > Users > Permissions > Define roles'').
#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.
#Click the button "Save changes".
 
==Student unenrolment==
 
By default, students are unable to unenrol themselves from courses.
 
To enable students to unenrol themselves from any course on the site that they are enrolled on:
#Access ''Administration > Users > Permissions > Define roles''.
#Click the edit icon opposite the student role.
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from not set to allow.
#Click the "Save changes" button at the bottom of the page.
 
To enable students to unenrol themselves from a particular course:
#Follow the Assign roles link in the course administration block.
#Follow the "Override permissions" tab. (Prior to Moodle 1.9, there is an "Override roles" link, rather than a tab.)
#Select the Student role.
#Set the capability [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] to allow.
#Click the "Save changes" button at the bottom of the page.
 
Note: Role changes will take effect immediately in Moodle 1.9, or when students next login in Moodle 1.7 and 1.8. Students will have an "Unenrol me from the course" link in the course administration block and an "Unenrol me from the course" button on their profile page.
 
[[eu:Rolen_baimenak]]
[[ja:ロールパーミッション]]
[[de:Rollenspezifische Fähigkeiten]]

Latest revision as of 10:08, 29 July 2008

Moodle1.7

Roles and capabilities in Moodle 1.7 onwards enable possibilities such as teachers being given permission to override permissions for other roles.

Role capabilities

The following capabilities are related to roles:

Enabling teachers to override permissions

By default, only administrators are able to override permissions. To enable teachers to do so:

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

Student unenrolment

By default, students are unable to unenrol themselves from courses.

To enable students to unenrol themselves from any course on the site that they are enrolled on:

  1. Access Administration > Users > Permissions > Define roles.
  2. Click the edit icon opposite the student role.
  3. Change the moodle/role:unassignself capability from not set to allow.
  4. Click the "Save changes" button at the bottom of the page.

To enable students to unenrol themselves from a particular course:

  1. Follow the Assign roles link in the course administration block.
  2. Follow the "Override permissions" tab. (Prior to Moodle 1.9, there is an "Override roles" link, rather than a tab.)
  3. Select the Student role.
  4. Set the capability moodle/role:unassignself to allow.
  5. Click the "Save changes" button at the bottom of the page.

Note: Role changes will take effect immediately in Moodle 1.9, or when students next login in Moodle 1.7 and 1.8. Students will have an "Unenrol me from the course" link in the course administration block and an "Unenrol me from the course" button on their profile page.