Permalink
Browse files

Now the "restore" option is showed to isteacheredit() teachers.

  • Loading branch information...
stronk7
stronk7 committed Aug 16, 2003
1 parent f3c6d21 commit 3953f4bdc4897db9018334d4f7ab448c7781cab0
Showing with 1 addition and 1 deletion.
  1. +1 −1 files/index.php
View
@@ -762,7 +762,7 @@ function displaydir ($wdir) {
} else if ($icon == "zip.gif") {
$edittext = "<a href=\"index.php?id=$id&wdir=$wdir&file=$fileurl&action=unzip\">$strunzip</a>&nbsp;";
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$fileurl&action=listzip\">$strlist</a> ";
- if (!empty($CFG->backup_version) and isteacher($id) and iscreator()) {
+ if (!empty($CFG->backup_version) and isteacher($id) and isteacheredit($id)) {
$edittext .= "<a href=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=restore\">$strrestore</a> ";
}
} else {

0 comments on commit 3953f4b

Please sign in to comment.