mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-16602: always display teachers (merge from 1.9)
This commit is contained in:
parent
2d5b05c878
commit
1cb1f9850e
@ -330,7 +330,7 @@ function tag_print_user_box($user, $return=false) {
|
||||
$usercontext = get_context_instance(CONTEXT_USER, $user->id);
|
||||
$profilelink = '';
|
||||
|
||||
if ( has_capability('moodle/user:viewdetails', $usercontext) ) {
|
||||
if ( has_capability('moodle/user:viewdetails', $usercontext) || isteacherinanycourse($user->id) ) {
|
||||
$profilelink = $CFG->wwwroot .'/user/view.php?id='. $user->id;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user