summaryrefslogtreecommitdiff
path: root/moderate.php
diff options
context:
space:
mode:
Diffstat (limited to 'moderate.php')
-rwxr-xr-xmoderate.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/moderate.php b/moderate.php
index 5a181ac..21951f6 100755
--- a/moderate.php
+++ b/moderate.php
@@ -34,8 +34,6 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (strcasecmp($action, "delete") == 0) $post->delete();
}
}
-} else {
-
}
?>
<!DOCTYPE html>
@@ -46,7 +44,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
</head>
<body>
<?php include_once 'includes/templates/header.php'; ?>
-<?php if (Session::get()->is_signed_in() and $user->level == USER_LEVEL_MODERATOR): ?>
+<?php if (Session::get()->is_signed_in() and Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR): ?>
<?php if ($is_post): ?>
<h2>Moderate post</h2>
<?php echo $post->get_content(); ?>