mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-47408-master' of https://github.com/DmitryNefedov/moodle
This commit is contained in:
commit
251089fe44
1 changed files with 1 additions and 1 deletions
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue