Skip to content

Commit

Permalink
MDL-50330 blog: Make other users blogs accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed May 27, 2015
1 parent de6b4e9 commit c5954f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,7 @@ function core_blog_myprofile_navigation(core_user\output\myprofile\tree $tree, $
// May as well just bail aggressively here.
return true;
}
if ($CFG->bloglevel == BLOG_USER_LEVEL && !$iscurrentuser) {
// Blogs are only viewable by the owner.
if (!blog_user_can_view_user_entry($user->id)) {
return true;
}
$url = new moodle_url("/blog/index.php", array('userid' => $user->id));
Expand Down

0 comments on commit c5954f6

Please sign in to comment.