mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
user-profile MDL-22499 Added context checks around the link in a users course profile to view their full profile.
This commit is contained in:
parent
de55d4695e
commit
46ea652fd9
1 changed files with 5 additions and 3 deletions
|
@ -292,9 +292,11 @@ if (!isset($hiddenfields['mycourses'])) {
|
|||
|
||||
echo "</table></div></div>";
|
||||
|
||||
echo '<div class="fullprofilelink">';
|
||||
echo html_writer::link($CFG->wwwroot.'/user/profile.php?id='.$id, get_string('fullprofile'));
|
||||
echo '</div>';
|
||||
if ($currentuser || has_capability('moodle/user:viewdetails', $usercontext) || has_coursecontact_role($id)) {
|
||||
echo '<div class="fullprofilelink">';
|
||||
echo html_writer::link($CFG->wwwroot.'/user/profile.php?id='.$id, get_string('fullprofile'));
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
/// TODO Add more useful overview info for teachers here, see below
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue