From: martin Date: Thu, 8 Aug 2002 17:30:50 +0000 (+0000) Subject: Better control of buttons for admin and in site view X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=243c518b989d09f7806e98fd0985e6cace4c9a91;p=moodle.git Better control of buttons for admin and in site view --- diff --git a/user/view.php b/user/view.php index 0113d121ae..30268f4769 100644 --- a/user/view.php +++ b/user/view.php @@ -61,7 +61,7 @@ echo "
"; echo "

$fullname

"; echo "
"; - if ($id == $USER->id and !isguest()) { + if (($id == $USER->id and !isguest()) or isadmin()) { echo "

"; echo ""; echo "id\">"; @@ -117,7 +117,7 @@ // Print other functions echo "
"; - if ($course->category and (isteacher($course->id) or ($user->id == $USER->id and !isguest())) ) { + if ($course->category and !isguest() and (isteacher($course->id) and ($user->id != $USER->id)) ) { echo "

"; echo "id\">"; echo "id\">";