Merge branch 'MDL-47408-27' of https://github.com/DmitryNefedov/moodle into MOODLE_27_STABLE
This commit is contained in:
+1
-1
@@ -696,7 +696,7 @@ if ($mode === MODE_USERDETAILS) { // Print simple listing.
|
||||
|
||||
$links = array();
|
||||
|
||||
if ($CFG->enableblogs && $CFG->bloglevel > 0) {
|
||||
if ($CFG->enableblogs && ($CFG->bloglevel != BLOG_USER_LEVEL || $USER->id == $user->id)) {
|
||||
$links[] = html_writer::link(new moodle_url('/blog/index.php?userid='.$user->id), get_string('blogs', 'blog'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user