Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/filelib.php
6 lib/filelib.php
@@ -3471,15 +3471,15 @@ function file_pluginfile($relativepath, $forcedownload, $preview = null) {
3471 3471 }
3472 3472 }
3473 3473
3474   - if ('publishstate' === 'public') {
  3474 + if ($entry->publishstate === 'public') {
3475 3475 if ($CFG->forcelogin) {
3476 3476 require_login();
3477 3477 }
3478 3478
3479   - } else if ('publishstate' === 'site') {
  3479 + } else if ($entry->publishstate === 'site') {
3480 3480 require_login();
3481 3481 //ok
3482   - } else if ('publishstate' === 'draft') {
  3482 + } else if ($entry->publishstate === 'draft') {
3483 3483 require_login();
3484 3484 if ($USER->id != $entry->userid) {
3485 3485 send_file_not_found();

0 comments on commit 7c4bfa5

Please sign in to comment.
Something went wrong with that request. Please try again.