Skip to content
Browse files

Security-check was wrong.

  • Loading branch information...
1 parent 5beb559 commit dd69e424c017723ba989af95260e72aee4c06705 skaldrom committed Jun 6, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/wiki/admin.php
View
2 mod/wiki/admin.php
@@ -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 !");
}
}

0 comments on commit dd69e42

Please sign in to comment.
Something went wrong with that request. Please try again.