summaryrefslogtreecommitdiff
path: root/moderate.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-07-20 12:29:11 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-07-20 12:29:11 -0600
commit3c5828b1a787bffa6e886a4952741e4bcaeb43b9 (patch)
tree5e40fd78ad3c5301c62207ecfa4bd109a582db69 /moderate.php
parentf5e972c030675f46cda543e13da1b787457e070b (diff)
A bit of code cleanup
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(); ?>