Note: This documentation is for Moodle 2.7. For up-to-date documentation see Context.

Context

From MoodleDocs
Revision as of 10:17, 17 July 2009 by chris collman (talk | contribs) (Changed name from Role contexts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

See also