### Eclipse Workspace Patch 1.0 #P moodle-HEAD Index: lib/db/access.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/db/access.php,v retrieving revision 1.58 diff -u -r1.58 access.php --- lib/db/access.php 18 May 2007 11:57:47 -0000 1.58 +++ lib/db/access.php 22 May 2007 14:33:16 -0000 @@ -785,7 +785,86 @@ ) ), - 'moodle/question:import' => array( + 'moodle/question:managecategory' => array( + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ) + ), + + //new in moodle 1.9 + 'moodle/question:add' => array( + 'riskbitmask' => RISK_SPAM, + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ), + 'clonerolecapsof' => 'moodle/question:manage' + ), + 'moodle/question:editmine' => array( + 'riskbitmask' => RISK_SPAM, + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ), + 'clonerolecapsof' => 'moodle/question:manage' + ), + 'moodle/question:editall' => array( + 'riskbitmask' => RISK_SPAM, + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ), + 'clonerolecapsof' => 'moodle/question:manage' + ), + 'moodle/question:viewmine' => array( + 'captype' => 'read', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ), + 'clonerolecapsof' => 'moodle/question:manage' + ), + 'moodle/question:viewall' => array( + 'captype' => 'read', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ), + 'clonerolecapsof' => 'moodle/question:manage' + ), + 'moodle/question:usemine' => array( + 'captype' => 'read', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ), + 'clonerolecapsof' => 'moodle/question:manage' + ), + 'moodle/question:useall' => array( + 'captype' => 'read', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ), + 'clonerolecapsof' => 'moodle/question:manage' + ), + //END new in moodle 1.9 + +/* 'moodle/question:import' => array( 'riskbitmask' => RISK_XSS, @@ -828,7 +907,7 @@ 'admin' => CAP_ALLOW ) ), - +*/ // Configure the installed question types. 'moodle/question:config' => array( Index: version.php =================================================================== RCS file: /cvsroot/moodle/moodle/version.php,v retrieving revision 1.455 diff -u -r1.455 version.php --- version.php 18 May 2007 11:57:48 -0000 1.455 +++ version.php 22 May 2007 14:33:16 -0000 @@ -6,7 +6,7 @@ // This is compared against the values stored in the database to determine // whether upgrades should be performed (see lib/db/*.php) - $version = 2007051801; // YYYYMMDD = date + $version = 2007051901; // YYYYMMDD = date // XY = increments within a single day $release = '1.9 dev'; // Human-friendly version name