Permalink
Browse files

MDL-34585 fix broken blog file access control

  • Loading branch information...
1 parent 8f7756b commit 2d2cce8bd2024e55ffcfa29c2a0da3b3bfce011e @skodak skodak committed Jul 31, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 pluginfile.php
View
@@ -101,15 +101,15 @@
}
}
- if ('publishstate' === 'public') {
+ if ($entry->publishstate === 'public') {
if ($CFG->forcelogin) {
require_login();
}
- } else if ('publishstate' === 'site') {
+ } else if ($entry->publishstate === 'site') {
require_login();
//ok
- } else if ('publishstate' === 'draft') {
+ } else if ($entry->publishstate === 'draft') {
require_login();
if ($USER->id != $entry->userid) {
send_file_not_found();

0 comments on commit 2d2cce8

Please sign in to comment.