mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-30467 do profiles in tags for deleted users
This commit is contained in:
parent
d05e39b0d9
commit
368f5b7b4c
@ -324,7 +324,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) || has_coursecontact_role($user->id) ) {
|
||||
if ($usercontext and (has_capability('moodle/user:viewdetails', $usercontext) || has_coursecontact_role($user->id))) {
|
||||
$profilelink = $CFG->wwwroot .'/user/view.php?id='. $user->id;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user