From: toyomoyo Date: Fri, 9 Jun 2006 02:53:16 +0000 (+0000) Subject: merged, fixed a bug that blog tabs are displayed when blog is diabled X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cc841d67b087a6854f7c429e70b7508a6ea6455b;p=moodle.git merged, fixed a bug that blog tabs are displayed when blog is diabled --- diff --git a/user/tabs.php b/user/tabs.php index a67986f34e..4b2ef6f818 100644 --- a/user/tabs.php +++ b/user/tabs.php @@ -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')); }