From cc841d67b087a6854f7c429e70b7508a6ea6455b Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 9 Jun 2006 02:53:16 +0000 Subject: [PATCH] merged, fixed a bug that blog tabs are displayed when blog is diabled --- user/tabs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } -- 2.39.5