-<?php
+<?php // $Id$
//
// Capability definitions for Moodle core.
//
),
'moodle/question:managecategory' => array(
-
+ 'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
//new in moodle 1.9
'moodle/question:add' => array(
- 'riskbitmask' => RISK_SPAM,
+ 'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'clonepermissionsfrom' => 'moodle/question:manage'
),
'moodle/question:editmine' => array(
- 'riskbitmask' => RISK_SPAM,
+ 'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'clonepermissionsfrom' => 'moodle/question:manage'
),
'moodle/question:editall' => array(
- 'riskbitmask' => RISK_SPAM,
+ 'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
// Configure the installed question types.
'moodle/question:config' => array(
-
'riskbitmask' => RISK_CONFIG,
-
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
-<?php // $Id$
+<?php // $Id$
/**
* Capability definitions for the quiz module.
*
// Ability to see that the quiz exists, and the basic information
// about it, for example the start date and time limit.
'mod/quiz:view' => array(
-
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
// Ability to do the quiz as a 'student'.
'mod/quiz:attempt' => array(
-
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
// Edit the quiz settings, add and remove questions.
'mod/quiz:manage' => array(
-
+ 'riskbitmask' => RISK_SPAM,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
// Preview the quiz.
'mod/quiz:preview' => array(
-
'captype' => 'write', // Only just a write.
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
// Manually grade and comment on student attempts at a question, and regrade quizzes.
'mod/quiz:grade' => array(
-
+ 'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
// View the quiz reports.
'mod/quiz:viewreports' => array(
-
+ 'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
// Delete attempts using the overview report.
'mod/quiz:deleteattempts' => array(
-
+ 'riskbitmask' => RISK_DATALOSS,
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
)
),
+ // Do not have the time limit imposed. Used for accessibility legislation compliance.
'mod/quiz:ignoretimelimits' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
// Receive email confirmation of own quiz submission
'mod/quiz:emailconfirmsubmission' => array(
-
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array()
// Receive email notification of other peoples quiz submissions
'mod/quiz:emailnotifysubmission' => array(
-
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array()
)
);
-
?>