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

Question permissions: Difference between revisions

From MoodleDocs
No edit summary
(rearranging content, capabilities in Moodle 1.9)
Line 5: Line 5:
*[[Capabilities/moodle/question:export|moodle/question:export]]
*[[Capabilities/moodle/question:export|moodle/question:export]]
*[[Capabilities/moodle/question:import|moodle/question:import]]
*[[Capabilities/moodle/question:import|moodle/question:import]]
*[[Capabilities/moodle/question:manage|moodle/question:manage]]
*[[Capabilities/moodle/question:managecategory|question:managecategory]]
*[[Capabilities/moodle/question:managecategory|question:managecategory]]
*[[Capabilities/moodle/question:manage|moodle/question:manage]] (1.7 and 1.8 only)
*[[Capabilities/moodle/question:export|moodle/question:export]] (1.7 and 1.8 only)
*[[Capabilities/moodle/question:import|moodle/question:import]] (1.7 and 1.8 only)
*[[Capabilities/moodle/question:add|moodle/question:add]] (1.9 onwards)
*[[Capabilities/moodle/question:editall|moodle/question:editall]] (1.9 onwards)
*[[Capabilities/moodle/question:editmine|moodle/question:editmine]] (1.9 onwards)
*[[Capabilities/moodle/question:moveall|moodle/question:moveall]] (1.9 onwards)
*[[Capabilities/moodle/question:movemine|moodle/question:movemine]] (1.9 onwards)
*[[Capabilities/moodle/question:useall|moodle/question:useall]] (1.9 onwards)
*[[Capabilities/moodle/question:usemine|moodle/question:usemine]] (1.9 onwards)
*[[Capabilities/moodle/question:viewall|moodle/question:viewall]] (1.9 onwards)
*[[Capabilities/moodle/question:viewmine|moodle/question:viewmine]] (1.9 onwards)


{{Moodle 1.9}}From Moodle 1.9 onwards :
==Capabilities in Moodle 1.9==
* the following capabilities replace moodle/question:manage :
{{Moodle 1.9}}In Moodle 1.9 onwards,
**[[Capabilities/moodle/question:add|moodle/question:add]]
* The last nine capabilities listed replace moodle/question:manage
**[[Capabilities/moodle/question:editall|moodle/question:editall]]
* moodle/question:add is used to determine whether a user has permission to import questions
**[[Capabilities/moodle/question:editmine|moodle/question:editmine]]
* moodle/question:viewall and moodle/question:viewmine are used to determine whether a user has permission to export
**[[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.


==*all or * mine==
Also in Moodle 1.9 onwards, certain capabilities contain the words ''all'' or ''mine''.


{{Moodle 1.9}}Notice that apart from the add capability other capabilities to manage questions are *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


* *all means all questions and if you have the *all capability *mine is not tested.  
If you have the view capability for a question you can view a question created by another and "Save as New Question". This creates a new question that is one you created and which you can then do anything you have ''mine'' capability to do with.
* *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.
==Contexts and permissions==


==Contexts and permissions==
In Moodle 1.9 onwards, we have separate category hierarchies in [[Question contexts]] and the permissions for what you can do with a question depend on the context in which the question is.
{{Moodle 1.9}}
In Moodle 1.9 we have separate category hierarchies in [[Question contexts]] and the permissions for what you can do with a question depend on the context in which the question is.


==See also==
==See also==
{{Moodle 1.9}}
*[[Question creator role]]
*[[Question Engine Changes in Moodle 1.9]]
*[[Question Engine Changes in Moodle 1.9]]
*[[Question contexts]]
*[[Question contexts]]
*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
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]


[[Category:Roles]]
[[Category:Roles]]

Revision as of 10:38, 4 June 2008


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:

Capabilities in Moodle 1.9

Moodle1.9

In Moodle 1.9 onwards,

  • The last nine capabilities listed replace moodle/question:manage
  • moodle/question:add is used to determine whether a user has permission to import questions
  • moodle/question:viewall and moodle/question:viewmine are used to determine whether a user has permission to export

Also in Moodle 1.9 onwards, 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

If you have the view capability for a question you can view a question created by another and "Save as New Question". This creates a new question that is one you created and which you can then do anything you have mine capability to do with.

Contexts and permissions

In Moodle 1.9 onwards, we have separate category hierarchies in Question contexts and the permissions for what you can do with a question depend on the context in which the question is.

See also

Using Moodle forum discussions: