Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: Role contexts.

Role contexts: Difference between revisions

From MoodleDocs
(Hi Tim, here is my non-techie explaination)
m (see page comment)
Line 1: Line 1:
{{stub}}
{{stub}}
A context is a "space" in Moodle.  The context is combined with [[Role permissions]] to define a user's [[Roles and capabilities|capabilities]] on any page in Moodle.  A course is a good example of a context, where some users have the permissions of a student and other users have the permission of a teacher.   
A context is a "space" in Moodle.  The context is combined with [[Role permissions]] to define a user's [[Roles and capabilities|capabilities]] on any page in Moodle.  A course is a good example of a context, where some users have the permissions of a student and other users have the permissions of a teacher.   


In Moodle 1.7 and onward, a permission context can include an activity module or a block. Thus a course can have many contexts in its space.  These might include lesson, assignment, forum and quiz modules and blocks.
In Moodle 1.7 and onward, a permission context can include an activity module or a block. Thus a course can have many contexts in its space.  These might include lesson, assignment, forum and quiz modules and blocks.


It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of "student" for a course but be given a teacher's role in the context of one specific forum.
It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of "student" for a course but be given a teacher's role in the context of one specific forum.

Revision as of 11:33, 16 July 2009

A context is a "space" in Moodle. The context is combined with Role permissions to define a user's capabilities on any page in Moodle. A course is a good example of a context, where some users have the permissions of a student and other users have the permissions of a teacher.

In Moodle 1.7 and onward, a permission context can include an activity module or a block. Thus a course can have many contexts in its space. These might include lesson, assignment, forum and quiz modules and blocks.

It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of "student" for a course but be given a teacher's role in the context of one specific forum.