]> git.mjollnir.org Git - moodle.git/commitdiff
Security-check was wrong.
authorskaldrom <skaldrom>
Sun, 6 Jun 2004 17:48:13 +0000 (17:48 +0000)
committerskaldrom <skaldrom>
Sun, 6 Jun 2004 17:48:13 +0000 (17:48 +0000)
mod/wiki/admin.php

index 9a9dbc0113d7471241cea2d162024203248c4621..a2abceb86ae68b50e990a0b8304e1fada78a41e3 100644 (file)
@@ -77,7 +77,7 @@
 
     # Check for dangerous events (hacking) !
     if(in_array($action,array("removepages","strippages","revertpages"))) {
-      if($wiki->wtype!="student" && !isteacher($course->id)) {
+      if(!($wiki->wtype=="student" || isteacher($course->id))) {
         error("Hack attack detected !");
       }          
     }