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
2 changed files with 4 additions and 1 deletions
+3
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;
}
+1 -1
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) {