Skip to content

Commit

Permalink
fixed undefined userid
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Jul 15, 2010
1 parent 5138bae commit 7054b01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pluginfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@
if (isguestuser()) {
send_file_not_found();
}
$userid = $context->instanceid;

if ($USER->id != $userid) {
send_file_not_found();
}
Expand Down

0 comments on commit 7054b01

Please sign in to comment.