Permalink
Browse files

Fixed serious bug that allowed any existing user to use this page. Doh!

  • Loading branch information...
1 parent 41111d5 commit f3b9479b3e8a7a3bf5af6f8aff33199b1654a16b martin committed Nov 30, 2001
Showing with 2 additions and 3 deletions.
  1. +2 −3 admin/index.php
View
@@ -69,11 +69,10 @@
}
if (!isadmin()) {
- if (record_exists_sql("SELECT * FROM user_admins")) {
- require_login();
- } else {
+ if (! record_exists_sql("SELECT * FROM user_admins")) {
redirect("user.php");
}
+ error("You need to be an admin user to use this page.", "$CFG->wwwroot/login/");
}

0 comments on commit f3b9479

Please sign in to comment.