summaryrefslogtreecommitdiff
path: root/htdocs/moderate/users/editor.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/moderate/users/editor.php')
-rw-r--r--htdocs/moderate/users/editor.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/htdocs/moderate/users/editor.php b/htdocs/moderate/users/editor.php
index 21be99e..c44928f 100644
--- a/htdocs/moderate/users/editor.php
+++ b/htdocs/moderate/users/editor.php
@@ -10,6 +10,12 @@
require_once('../../src/base.inc.php');
+// Verify User is admin
+if (!$_SESSION['currentUser']->isAdmin()) {
+ header('Location: ' . buildUrl('moderate/'));
+ exit;
+}
+
$error = '';
// Get the current user object.