Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Question permissions.

Question permissions: Difference between revisions

From MoodleDocs
No edit summary
m (added link to spanish translation of document)
 
(21 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Questions}}
{{Questions}}
Roles and capabilities in Moodle 1.7 onwards enable possibilities such as students being given permission to edit questions. The following capabilities are related to questions:
[[Roles and capabilities]] are combined with [[Question categories]] to give a user permission to create, edit and view questions in the [[Question bank]]. For example, a combination might allow a student being able to edit questions in a specific quiz activity or all science teachers being able to use the question categories created for their department and not view other departments categories. In short, question categories are [[Context|contexts]] (see [[Question contexts]]) and work with roles to determine a user's permissions in managing individual questions.


*[[Capabilities/moodle/question:config|moodle/question:config]]
Also, Question permissions allow a user to grant other users permissions. For example, a teacher in a course may decide to share their questions located in a specific course question category with other teachers who do not have permission to enter their course. This is all done with permissions that are given to a role in a specific context.
*[[Capabilities/moodle/question:export|moodle/question:export]]
*[[Capabilities/moodle/question:import|moodle/question:import]]
*[[Capabilities/moodle/question:manage|moodle/question:manage]]
*[[Capabilities/moodle/question:managecategory|question:managecategory]]


{{Moodle 1.9}}From Moodle 1.9 onwards :
==Brief review of permission concepts==
* the following capabilities replace moodle/question:manage :
**[[Capabilities/moodle/question:add|moodle/question:add]]
**[[Capabilities/moodle/question:editall|moodle/question:editall]]
**[[Capabilities/moodle/question:editmine|moodle/question:editmine]]
**[[Capabilities/moodle/question:moveall|moodle/question:moveall]]
**[[Capabilities/moodle/question:movemine|moodle/question:movemine]]
**[[Capabilities/moodle/question:useall|moodle/question:useall]]
**[[Capabilities/moodle/question:usemine|moodle/question:usemine]]
**[[Capabilities/moodle/question:viewall|moodle/question:viewall]]
**[[Capabilities/moodle/question:viewmine|moodle/question:viewmine]]
* Also from Moodle 1.9 we got rid of capabilities :
**[[Capabilities/moodle/question:export|moodle/question:export]]
**[[Capabilities/moodle/question:import|moodle/question:import]]
* From Moodle 1.9 we test for capabilities :
** moodle/question:add to see if a user has permission to import questions.
** And we test for permission moodle/question:viewall or moodle/question:viewmine to see if a user has permission to export.


==Contexts==
The 2.0 Moodle [[Question bank]] simplifies the task of organization of questions but the terminology can be confusing.  In general, a set of questions is created in what is called a question category.  A question category is like a folder in a computer file system or in file cabinet.  Like a file folder, a question category might contain other question categories or just a set of questions. Permissions are assigned to question categories.  The nesting (placing of a question category within another question category) can create a hierarchy of permissions when it comes to dealing with individual questions located in a question category.   


{{Moodle 1.9}}From Moodle 1.9 we can share questions in different contexts. Question categories are separated into different contexts from Moodle 1.9.
By default a course teacher does not have permission to do anything with questions placed in a category outside the course in which they are assigned a teacher role. By default, students can not even see the Question bank or edit any question. The default permissions can be changed to meet specific goals of a site, a course or even a specific quiz activity.
Each different context has a separate question category hierarchy.


Question category contexts are :  
==Technical notes for administrators==
For users who have privileges to alter the permissions for a role, here are some permissions that affect Question bank and its management and use:
*[[Capabilities/moodle/question:config|moodle/question:config]]
*[[Capabilities/moodle/question:managecategory|moodle/question:managecategory]]
*[[Capabilities/moodle/question:add|moodle/question:add]] - determines whether a user has permission to import questions


*Activity context : questions only available to one activity module.
*[[Capabilities/moodle/question:editall|moodle/question:editall]]
*Course context : questions available to all activity modules in a course and within the course from the 'Questions' link in the course administration block.
*[[Capabilities/moodle/question:editmine|moodle/question:editmine]]
*Course category contexts : questions available to all activity modules and courses in the course category (remember one course category can contain other course categories, you can share your questions in any or all of the parent course categories).
*[[Capabilities/moodle/question:moveall|moodle/question:moveall]]
*Core System context : questions available in all courses and activities on your site.
*[[Capabilities/moodle/question:movemine|moodle/question:movemine]]
*[[Capabilities/moodle/question:useall|moodle/question:useall]]
*[[Capabilities/moodle/question:usemine|moodle/question:usemine]]
*[[Capabilities/moodle/question:viewall|moodle/question:viewall]]
*[[Capabilities/moodle/question:viewmine|moodle/question:viewmine]]
* Certain capabilities contain the words ''all'' or ''mine'':
** ''all'' means all questions, and if you have the ''all'' capability, ''mine'' is not tested.
** ''mine'' means that you have the capability for your questions but not for questions created by others


Question capabilities are tested in the relevant context. So to add a question to a category you must have the add capability for that context. See roles and capability help for more info.
==See also==


==*all or * mine==
*[[How to let teachers share questions between courses]]
*[[Question permissions explained with diagrams]]
*[[Question creator role]]


{{Moodle 1.9}}Notice that apart from the add capability other capabilities to manage questions are *all or * mine.
Using Moodle forum discussions:
*[http://moodle.org/mod/forum/discuss.php?d=67725 capability for editing new questions]
*[http://moodle.org/mod/forum/discuss.php?d=68072 examining present capabilities for questions]


* *all means all questions and if you have the *all capability *mine is not tested.
[[Category:Roles]]
* *mine means that you have the capability for your questions but not for questions created by others.
 
If you have the view capability for a question you can view a question created by another and 'Save as New Question' that creates a new question that is one you created and which you can then do anything you have *mine capability to do with.
 
==See also==
{{Moodle 1.9}}
*[[Question Engine Changes in Moodle 1.9]]
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=67725 capability for editing new questions] and [http://moodle.org/mod/forum/discuss.php?d=68072 examining present capabilities for questions] forum discussions


[[Category:Roles]]
[[de:Fragen-Rechte]]
[[eu:Galderen_baimenak]]
[[ja:問題パーミッション]]
[[es:Permisos de pregunta]]

Latest revision as of 21:15, 29 December 2013


Roles and capabilities are combined with Question categories to give a user permission to create, edit and view questions in the Question bank. For example, a combination might allow a student being able to edit questions in a specific quiz activity or all science teachers being able to use the question categories created for their department and not view other departments categories. In short, question categories are contexts (see Question contexts) and work with roles to determine a user's permissions in managing individual questions.

Also, Question permissions allow a user to grant other users permissions. For example, a teacher in a course may decide to share their questions located in a specific course question category with other teachers who do not have permission to enter their course. This is all done with permissions that are given to a role in a specific context.

Brief review of permission concepts

The 2.0 Moodle Question bank simplifies the task of organization of questions but the terminology can be confusing. In general, a set of questions is created in what is called a question category. A question category is like a folder in a computer file system or in file cabinet. Like a file folder, a question category might contain other question categories or just a set of questions. Permissions are assigned to question categories. The nesting (placing of a question category within another question category) can create a hierarchy of permissions when it comes to dealing with individual questions located in a question category.

By default a course teacher does not have permission to do anything with questions placed in a category outside the course in which they are assigned a teacher role. By default, students can not even see the Question bank or edit any question. The default permissions can be changed to meet specific goals of a site, a course or even a specific quiz activity.

Technical notes for administrators

For users who have privileges to alter the permissions for a role, here are some permissions that affect Question bank and its management and use:

See also

Using Moodle forum discussions: