Role permissions: Difference between revisions
Helen Foster (talk | contribs) (list of capabilities, templates, category) |
Helen Foster (talk | contribs) (moodle/role:safeoverride link) |
||
(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]] | ||
[[ | ==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:
- moodle/role:assign
- moodle/role:manage
- moodle/role:override
- moodle/role:safeoverride (1.9.3 onwards)
- moodle/role:switchroles
- moodle/role:unassignself
- moodle/role:viewhiddenassigns
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 moodle/role:override (or 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 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 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.