Merge branch 'MDL-38525-master' of https://github.com/damyon/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2013-04-11 00:56:45 +02:00
commit e592ccd860
2 changed files with 4 additions and 1 deletions

View file

@ -3091,6 +3091,9 @@ class assign {
public function can_view_submission($userid) {
global $USER;
if (is_siteadmin()) {
return true;
}
if (!is_enrolled($this->get_course_context(), $userid)) {
return false;
}

View file

@ -301,7 +301,7 @@ class assign_upgrade_manager {
} catch (Exception $exception) {
$rollback = true;
$log .= get_string('conversionexception', 'mod_assign', $exception->error);
$log .= get_string('conversionexception', 'mod_assign', $exception->getMessage());
}
if ($rollback) {