From: David Mudrak Date: Mon, 4 Jan 2010 18:29:29 +0000 (+0000) Subject: workshop: preparing possibility to publish selected submissions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7ba87816350e7c6a14453c83ab030c2b3487d4db;p=moodle.git workshop: preparing possibility to publish selected submissions --- diff --git a/mod/workshop/db/access.php b/mod/workshop/db/access.php index 635823356e..4a678a1c1e 100644 --- a/mod/workshop/db/access.php +++ b/mod/workshop/db/access.php @@ -109,6 +109,17 @@ $mod_workshop_capabilities = array( ) ), + // Ability to publish submissions, it est make them available when workshop is closed + 'mod/workshop:publishsubmissions' => array( + 'captype' => 'write', + 'contextlevel' => CONTEXT_MODULE, + 'legacy' => array( + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ) + ), + // Ability to identify the author of the work that has been allocated to them for a review // Reviewers without this capability will see the author as Anonymous 'mod/workshop:viewauthornames' => array( @@ -145,6 +156,19 @@ $mod_workshop_capabilities = array( ) ), + // Ability to view published submission when the workshop is closed. Applies to the user's group only + // or - if the user is allowed to access all groups - applies to any submission + 'mod/workshop:viewpublishedsubmissions' => array( + 'captype' => 'read', + 'contextlevel' => CONTEXT_MODULE, + 'legacy' => array( + 'student' => CAP_ALLOW, + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ) + ), + // Ability to view the assessments of other users' work. Applies to the user's group only // or - if the user is allowed to access all groups - applies to any assessment 'mod/workshop:viewallassessments' => array( diff --git a/mod/workshop/db/install.xml b/mod/workshop/db/install.xml index 67739b44a7..99a4c959fd 100644 --- a/mod/workshop/db/install.xml +++ b/mod/workshop/db/install.xml @@ -1,5 +1,5 @@ - @@ -56,7 +56,8 @@ - + + diff --git a/mod/workshop/version.php b/mod/workshop/version.php index 4744138104..301d2fe61a 100644 --- a/mod/workshop/version.php +++ b/mod/workshop/version.php @@ -28,6 +28,6 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2009103000; +$module->version = 2009121800; $module->requires = 2009090400; // Requires this Moodle version //$module->cron = 60;