mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-38557 quiz manual grading should check mod/quiz:grade
This commit is contained in:
parent
0559a72aa3
commit
30461b0066
@ -46,5 +46,6 @@ function xmldb_quiz_install() {
|
||||
$record = new stdClass();
|
||||
$record->name = 'grading';
|
||||
$record->displayorder = '6000';
|
||||
$record->capability = 'mod/quiz:grade';
|
||||
$DB->insert_record('quiz_reports', $record);
|
||||
}
|
||||
|
@ -395,6 +395,13 @@ function xmldb_quiz_upgrade($oldversion) {
|
||||
// Moodle v2.4.0 release upgrade line
|
||||
// Put any upgrade step following this
|
||||
|
||||
if ($oldversion < 2013031900) {
|
||||
// Quiz manual grading UI should be controlled by mod/quiz:grade, not :viewreports.
|
||||
$DB->set_field('quiz_reports', 'capability', 'mod/quiz:grade', array('name' => 'grading'));
|
||||
|
||||
// Mod quiz savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2013031900, 'quiz');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013021500; // The current module version (Date: YYYYMMDDXX).
|
||||
$module->requires = 2012112900; // Requires this Moodle version.
|
||||
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
|
||||
$module->version = 2013031900; // The current module version (Date: YYYYMMDDXX).
|
||||
$module->requires = 2012112900; // Requires this Moodle version.
|
||||
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
|
||||
$module->cron = 60;
|
||||
|
Loading…
x
Reference in New Issue
Block a user