Skip to content
Permalink
Browse files

MDL-31171 fix blog attachment serving in BLOG_USER_LEVEL

  • Loading branch information...
skodak committed Jan 15, 2012
1 parent c1dc3a5 commit 41238d891c011cc6e34109a9ee4ba8b492e57a62
Showing with 4 additions and 4 deletions.
  1. +4 −4 pluginfile.php
@@ -85,6 +85,10 @@
print_error('siteblogdisable', 'blog');
}
$entryid = (int)array_shift($args);
if (!$entry = $DB->get_record('post', array('module'=>'blog', 'id'=>$entryid))) {
send_file_not_found();
}
if ($CFG->bloglevel < BLOG_GLOBAL_LEVEL) {
require_login();
if (isguestuser()) {
@@ -96,10 +100,6 @@
}
}
}
$entryid = (int)array_shift($args);
if (!$entry = $DB->get_record('post', array('module'=>'blog', 'id'=>$entryid))) {
send_file_not_found();
}
if ('publishstate' === 'public') {
if ($CFG->forcelogin) {

0 comments on commit 41238d8

Please sign in to comment.
You can’t perform that action at this time.