From: stronk7 Date: Sat, 16 Aug 2003 11:46:54 +0000 (+0000) Subject: Now the "restore" option is showed to isteacheredit() teachers. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3953f4bdc4897db9018334d4f7ab448c7781cab0;p=moodle.git Now the "restore" option is showed to isteacheredit() teachers. --- diff --git a/files/index.php b/files/index.php index 2f5ab4350a..95ce79940a 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 iscreator()) { + if (!empty($CFG->backup_version) and isteacher($id) and isteacheredit($id)) { $edittext .= "$strrestore "; } } else {