Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'w32_MDL-34585_m23_blogfiles' of git://github.com/skodak…

…/moodle into MOODLE_23_STABLE
  • Loading branch information...
commit 7c4bfa5ec7f3b492fb97d2f28a3e69aaed30ad36 2 parents d939a4d + 3a933cd
Dan Poltawski danpoltawski authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/filelib.php
6 lib/filelib.php
View
@@ -3471,15 +3471,15 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null) {
}
}
- 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();
Please sign in to comment.
Something went wrong with that request. Please try again.