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

Question permissions: Difference between revisions

From MoodleDocs
m (→‎Question Contexts: formatting)
m (added link to spanish translation of document)
 
(18 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.


==Question 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.   


''Info in this section is included in several places, the original page itself is [[Question contexts|here]].''
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.


{{:Question contexts}}
==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


==*all or * mine==
*[[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]]
* 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


{{Moodle 1.9}}Notice that apart from the add capability other capabilities to manage questions are *all or * mine.
==See also==


* *all means all questions and if you have the *all capability *mine is not tested.
*[[How to let teachers share questions between courses]]
* *mine means that you have the capability for your questions but not for questions created by others.
*[[Question permissions explained with diagrams]]
*[[Question creator role]]


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


==See also==
[[Category:Roles]]
{{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: