From 5e99b9d70e4e779a35742d01f99beb2e1dd078ea Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 8 Oct 2008 20:03:15 +0000 Subject: [PATCH] MDL-15262 fixed major regressions for non-legacy roles with course:update enabled; merged from MOODLE_19_STABLE --- lib/db/access.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/db/access.php b/lib/db/access.php index afda0b4b77e..112f458c82c 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -677,7 +677,8 @@ $moodle_capabilities = array( 'legacy' => array( 'editingteacher' => CAP_ALLOW, 'admin' => CAP_ALLOW - ) + ), + 'clonepermissionsfrom' => 'moodle/course:update' ), 'moodle/course:changeshortname' => array( @@ -687,7 +688,8 @@ $moodle_capabilities = array( 'legacy' => array( 'editingteacher' => CAP_ALLOW, 'admin' => CAP_ALLOW - ) + ), + 'clonepermissionsfrom' => 'moodle/course:update' ), 'moodle/course:changeidnumber' => array( @@ -697,10 +699,10 @@ $moodle_capabilities = array( 'legacy' => array( 'editingteacher' => CAP_ALLOW, 'admin' => CAP_ALLOW - ) + ), + 'clonepermissionsfrom' => 'moodle/course:update' ), - 'moodle/site:viewparticipants' => array( 'captype' => 'read',