From 3953f4bdc4897db9018334d4f7ab448c7781cab0 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 16 Aug 2003 11:46:54 +0000 Subject: [PATCH] Now the "restore" option is showed to isteacheredit() teachers. --- files/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5