From 1cb1f9850e1285cdd2418d53ab1667fe7ea2b179 Mon Sep 17 00:00:00 2001 From: scyrma Date: Mon, 22 Sep 2008 09:09:11 +0000 Subject: [PATCH] MDL-16602: always display teachers (merge from 1.9) --- tag/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag/locallib.php b/tag/locallib.php index 3df411bb55..a9775fc3c6 100644 --- a/tag/locallib.php +++ b/tag/locallib.php @@ -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; } -- 2.39.5