Skip to content

Commit

Permalink
merged, fixed a bug that blog tabs are displayed when blog is diabled
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Jun 9, 2006
1 parent 7d3f400 commit cc841d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/tabs.php
Expand Up @@ -122,7 +122,7 @@




/// Blog entry, everyone can view /// 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')); $toprow[] = new tabobject('blogs', $CFG->wwwroot.'/blog/index.php?userid='.$user->id.'&courseid='.$course->id, get_string('blogs', 'blog'));
} }


Expand Down

0 comments on commit cc841d6

Please sign in to comment.