MDL-50794 workshop: Allow restricting submitted file types
commit1a282212c18cea304f6759e163f4821d2268cd3d
authorM Kassaei <m.kassaei@open.ac.uk>
Thu, 17 Dec 2015 10:00:48 +0000 (17 10:00 +0000)
committerDavid Mudrák <david@moodle.com>
Thu, 25 Feb 2016 17:03:18 +0000 (25 18:03 +0100)
tree7460f4b6a350ddbcd5f80ba99bf7ae931d0b753f
parent03b8b55f101813b292659db9a65f7b29b77947f4
MDL-50794 workshop: Allow restricting submitted file types

It was reported at the Open University that there have been some
problems with the formats of files submitted by students. Not all
students completed their outlines as a Word .doc (despite this being the
format of the template provided). Some formats (e.g. .pages) couldn’t be
translated by some of the reviewing students. Therefore, they were
unable to provide a review and the submitting students not receiving any
comments.

This patch allows the teacher to define list of allowed file types that
can be attached to submitted work and/or overall feedback in the
workshop.
13 files changed:
mod/workshop/backup/moodle2/backup_workshop_stepslib.php
mod/workshop/db/install.xml
mod/workshop/db/upgrade.php
mod/workshop/exsubmission.php
mod/workshop/form/assessment_form.php
mod/workshop/lang/en/workshop.php
mod/workshop/locallib.php
mod/workshop/mod_form.php
mod/workshop/submission.php
mod/workshop/submission_form.php
mod/workshop/tests/generator/lib.php
mod/workshop/tests/locallib_test.php
mod/workshop/version.php