Difference between revisions of "Roles and permissions"

Jump to: navigation, search
("ability to do something" instead of capability (a developer's term with a different meaning))
m (Definitions: format and minor edits)
Line 12: Line 12:
 
;Capability
 
;Capability
 
: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].
 
: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.
+
::For example [[Capabilities/moodle/blog:create|moodle/blog:create]](writing blog entries) or "Backup course" are two capabilities.   
;Permission
+
::Note the "<nowiki>mod/blog:create</nowiki>" notation is a common to identify a capability.
:A setting for a capability. Can be any one of four: not set/inherit, allow, prevent or prohibit.
+
;[[Manage_roles#Permissions|Permission]]
;Context
+
:A setting for a capability. Can be any one of four: not set(inherit), allow, prevent or prohibit.
 +
;[[Context]]
 
:A "space" in Moodle.  
 
:A "space" in Moodle.  
 
::For example: a course, activity module or block can each be a context.   
 
::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.
 
::Some contexts can contain multiple contexts in their space, For example, a course can contain a lesson, assignment, forum and quiz modules, plus blocks.
:A "course" in Moodle.
+
 
 
[[Image:context.png|center|thumb|150px|Each context can have a different role assigned to a User]]
 
[[Image:context.png|center|thumb|150px|Each context can have a different role assigned to a User]]
  

Revision as of 13:49, 20 September 2011

Template:Roles and capabilities

This page really needs improving. Please see the page comments for suggestions of what to include, then remove this template when you're done.

Roles are groups of permissions. Users are assigned roles in specific contexts. The combination of roles and context define a specific user's ability to do something on any page. The most common examples are the roles of student and teacher in the context of a course.

Note: Sometimes the terms "capabilities" and "permissions" are used to mean "the ability to do something". Technically, they are different. A capability is an action created in the code (edit a quiz). Permissions are assigned to the capability.

Definitions

Role
An identifier of the user's status within each Context. The status depends upon permissions given for one or more capabilities in any given context. A role can often change within different contexts.
For example Teacher and Student are standard user roles. These roles probably have different capabilities in some contexts but may share permissions in the other.
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.
Each context can have a different role assigned to a User

See also