Permalink
Browse files

merged, fixed a bug that blog tabs are displayed when blog is diabled

  • Loading branch information...
1 parent 7d3f400 commit cc841d67b087a6854f7c429e70b7508a6ea6455b toyomoyo committed Jun 9, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/tabs.php
View
@@ -122,7 +122,7 @@
/// Blog entry, everyone can view
- if ($CFG->bloglevel > 1 or $USER->id == $user->id) { // this is weird
+ if ($CFG->bloglevel > 0) { // only if blog is enabled. Permission check kicks in when display list
$toprow[] = new tabobject('blogs', $CFG->wwwroot.'/blog/index.php?userid='.$user->id.'&courseid='.$course->id, get_string('blogs', 'blog'));
}

0 comments on commit cc841d6

Please sign in to comment.