Security fix to disallow guest uploading

This commit is contained in:
fiedorow 2005-06-16 15:10:40 +00:00
parent 00178c8b42
commit 890c016ac0
2 changed files with 5 additions and 0 deletions

View file

@ -57,6 +57,10 @@ class assignment_uploadsingle extends assignment_base {
function upload() {
global $CFG, $USER;
if (isguest($USER->id)) {
error(get_string('guestnoupload','assignment'));
}
$this->view_header(get_string('upload'));
if (!$this->isopen()) {