From: moodler Date: Sat, 16 Aug 2003 16:14:25 +0000 (+0000) Subject: No need to call isteacher and isteacheredit, just isteacheredit will do. :-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=862810dc09b76f733867d1a111d14a8e791e08e3;p=moodle.git No need to call isteacher and isteacheredit, just isteacheredit will do. :-) --- diff --git a/files/index.php b/files/index.php index 95ce79940a..fcf90354e6 100644 --- a/files/index.php +++ b/files/index.php @@ -762,7 +762,7 @@ function displaydir ($wdir) { } else if ($icon == "zip.gif") { $edittext = "$strunzip "; $edittext .= "$strlist "; - if (!empty($CFG->backup_version) and isteacher($id) and isteacheredit($id)) { + if (!empty($CFG->backup_version) and isteacheredit($id)) { $edittext .= "$strrestore "; } } else {