Skip to content

Commit

Permalink
Merge branch 'MDL-38525-23' of https://github.com/damyon/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_23_STABLE
  • Loading branch information
stronk7 committed Apr 10, 2013
2 parents b3e792b + 557383c commit f3d4993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mod/assign/locallib.php
Expand Up @@ -2061,6 +2061,9 @@ private function is_graded($userid) {
public function can_view_submission($userid) {
global $USER;

if (is_siteadmin()) {
return true;
}
if (!is_enrolled($this->get_course_context(), $userid)) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/assign/upgradelib.php
Expand Up @@ -257,7 +257,7 @@ public function upgrade_assignment($oldassignmentid, & $log) {

} catch (Exception $exception) {
$rollback = true;
$log .= get_string('conversionexception', 'mod_assign', $exception->error);
$log .= get_string('conversionexception', 'mod_assign', $exception->getMessage());
}

if ($rollback) {
Expand Down

0 comments on commit f3d4993

Please sign in to comment.