Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-38557_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
commit 4984697c122150d2c78ef0c4b171381ca0827e17 2 parents e721f2d + 23149b2
@stronk7 stronk7 authored
View
1  mod/quiz/db/install.php
@@ -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);
}
View
8 mod/quiz/db/upgrade.php
@@ -392,6 +392,14 @@ function xmldb_quiz_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2012061704, 'quiz');
}
+ if ($oldversion < 2012061705) {
+ // 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, 2012061705, 'quiz');
+ }
+
return true;
}
View
2  mod/quiz/version.php
@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
-$module->version = 2012061704; // The current module version (Date: YYYYMMDDXX).
+$module->version = 2012061705; // The current module version (Date: YYYYMMDDXX).
$module->requires = 2012061700; // Requires this Moodle version.
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
$module->cron = 60;
Please sign in to comment.
Something went wrong with that request. Please try again.