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

Roles and capabilities: Difference between revisions

From MoodleDocs
m (Czech link)
m (Reverted edits by Lasko (talk) to last revision by Helen Foster)
 
(19 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Roles}}
{{Roles}}{{Moodle 1.7}}Roles and capabilities in Moodle 1.7 onwards provides great flexibility in managing how users interact. Prior to Moodle 1.7, there were only six roles possible: guest, student, non-editing teacher, editing teacher, course creator, and administrator. Whilst these roles may still be used, it's now possible to create additional roles, and to change what a given role can do in a particular activity.
{{Moodle 1.7}}Roles and capabilities in Moodle 1.7 onwards provides great flexibility in managing how users interact. Prior to Moodle 1.7, there were only six roles possible: guest, student, non-editing teacher, editing teacher, course creator, and administrator. Whilst these roles may still be used, it's now possible to create additional roles, and to change what a given role can do in a particular activity.


==Definitions==
==Definitions==
;Role
;Role
:An identifier of the user's status in some context, for example Teacher, Student and Forum moderator
:An identifier of the user's status. The status depends upon permissions given for one or more capabilities in a context.
::For example Teacher and Student are standard user roles. The identifier indicates they probably have different capabilities in some contexts. 
:When Moodle is first installed, a number of [[Standard roles]] are created automatically.
;Capability
;Capability
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]
:A description of a particular Moodle feature. A list of many capabilities can be seen in the [https://docs.moodle.org/en/Category:Capabilities capability category index page].
::For example [[Capabilities/moodle/blog:create|moodle/blog:create]](writing blog entries) or "Backup course" are two capabilities.  Note the "<nowiki>mod/blog:create</nowiki>" notation is a common to identify a capability.
;Permission
;Permission
:A setting for a capability
:A setting for a capability. Can be any one of four: not set/inherit, allow, prevent or prohibit.
;Context
;Context
:A "space" in Moodle, such as courses, activity modules or blocks
:A "space" in Moodle.
::For example: a course, activity module or block can each be a context. 
::Some contexts can contain multiple contexts in their space, For example, a course can contain a lesson, assignment, forum and quiz modules, plus blocks.


==Permissions==
==See also==
 
Permissions are settings for specific capabilities. There are four values:
 
;Not Set (formerly Inherit)
:This is the default value for all permissions when a new role is created. It means "use whatever setting the user already has". To determine what permission the user already has, Moodle searches upward through the nested contexts, looking for an explicit value (Allow, Prevent, Prohibit) for this capability.  For example, if a role is assigned to a user in a course context, and some capability has a value of 'Not set,' then the actual permission will be whatever the user has at the category level, or (failing to find an explicit permission at the category level) at the site level.  Note that the search terminates when an explicit permission is found.  If no explicit permission is found, then the value in the current context becomes Prevent.


;Allow
*[[Useful things a teacher can do with roles]]
:By choosing this you are granting permission for this capability to people who are assigned this role. This permission applies for the context that this role gets assigned plus all "lower" contexts. For example, if this role is a student role assigned to a course, then students will be able to "start new discussions" in all forums in that course, unless some forum contains an override or a new assignment with a Prevent or Prohibit value for this capability.
*[[Development:Roles administration improvements for Moodle 2.0]]
 
*[[How permissions are calculated]]
;Prevent
:By choosing this you are removing permission for this capability, even if the users with this role were allowed that permission in a higher context.
 
;Prohibit
:This is rarely needed, but occasionally you might want to completely deny permissions to a role in a way that can NOT be overridden at any lower context. An example of when you might need this is when an admin wants to prohibit one person from starting new discussions in any forum on the whole site. In this case they can create a role with that capability set to "Prohibit" and then assign it to that user in the site context.  
 
==See also==
*[[Development:Roles]]
*[[:Category:Capabilities]]
*[[:Category:Capabilities]]
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]
*[[Upgrading to Moodle 1.7]]
*[[Upgrading to Moodle 1.8]]


[[Category:Roles]]
[[Category:Roles]]
Line 43: Line 32:
[[ja:ロールおよびケイパビリティ]]
[[ja:ロールおよびケイパビリティ]]
[[ru:Роли и возможности]]
[[ru:Роли и возможности]]
[[de:Rollen und Rechte]]

Latest revision as of 07:39, 30 May 2011

Moodle1.7

Roles and capabilities in Moodle 1.7 onwards provides great flexibility in managing how users interact. Prior to Moodle 1.7, there were only six roles possible: guest, student, non-editing teacher, editing teacher, course creator, and administrator. Whilst these roles may still be used, it's now possible to create additional roles, and to change what a given role can do in a particular activity.

Definitions

Role
An identifier of the user's status. The status depends upon permissions given for one or more capabilities in a context.
For example Teacher and Student are standard user roles. The identifier indicates they probably have different capabilities in some contexts.
When Moodle is first installed, a number of Standard roles are created automatically.
Capability
A description of a particular Moodle feature. A list of many capabilities can be seen in the capability category index page.
For example moodle/blog:create(writing blog entries) or "Backup course" are two capabilities. Note the "mod/blog:create" notation is a common to identify a capability.
Permission
A setting for a capability. Can be any one of four: not set/inherit, allow, prevent or prohibit.
Context
A "space" in Moodle.
For example: a course, activity module or block can each be a context.
Some contexts can contain multiple contexts in their space, For example, a course can contain a lesson, assignment, forum and quiz modules, plus blocks.

See also