Skip to content
Browse files

Add require login to be safe (more checks than just isadmin)

  • Loading branch information...
1 parent 935ba6e commit eb34e77f1540d843093ab7ecad77480b3357dda5 moodler committed
Showing with 4 additions and 0 deletions.
  1. +1 −0 admin/filters.php
  2. +2 −0 admin/modules.php
  3. +1 −0 admin/site.php
View
1 admin/filters.php
@@ -10,6 +10,7 @@
optional_variable($up);
optional_variable($down);
+ require_login();
if (!isadmin()) {
error("Only administrators can use this page!");
View
2 admin/modules.php
@@ -9,6 +9,8 @@
optional_variable($delete);
optional_variable($confirm);
+ require_login();
+
if (!isadmin()) {
error("Only administrators can use this page!");
}
View
1 admin/site.php
@@ -3,6 +3,7 @@
require_once("../config.php");
if ($site = get_site()) {
+ require_login();
if (!isadmin()) {
error("You need to be admin to edit this page");
}

0 comments on commit eb34e77

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