From: moodler
Date: Fri, 31 Oct 2003 06:50:19 +0000 (+0000)
Subject: Show activity button for students on their profile page
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8f850172859de31bee15b0e52037d0490ea624d1;p=moodle.git
Show activity button for students on their profile page
---
diff --git a/user/view.php b/user/view.php
index cb7789c324..42cb332b03 100644
--- a/user/view.php
+++ b/user/view.php
@@ -163,19 +163,19 @@
echo "shortname)."\">";
echo "
";
}
- if (isteacher($course->id)) {
+ if (isteacher($course->id) or ($course->showreports and $USER->id == $user->id)) {
echo "
";
- if ($user->id != $USER->id) {
- echo "
";
- }
+ }
+ if (isteacher($course->id) and ($USER->id != $user->id)) {
+ echo "