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
No edit summary
(Hi Tim, here is my non-techie explaination)
Line 1: Line 1:
{{stub}}
{{stub}}
A context is a "space" in Moodle.   
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.   


    For example: a course, activity module or block can each be a context.
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.
    Some contexts can contain multiple contexts in their space, For example, a course can contain a lesson, assignment, forum and quiz modules, plus 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.
Actually, Chris, I was planning to write a page like this, because I needed it as background to some of the new stuff in Moodle 2.0 I need to document. It would be great if you wrote it for me. However, I think the title should be plain "Contexts", or "Contexts in Moodle", because, at least in Moodle 2.0, Conexts affect more than just Roles. Indeed, see [[Question_permissions_explained_with_diagrams]] for something that applies in 1.9. Sorry for graffiti-ing the body of your page. Please delete this once you have read it.--[[User:Tim Hunt|Tim Hunt]] 11:25, 16 July 2009 (UTC)

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