Merge branch 'MDL-38525-master' of https://github.com/damyon/moodle
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user