summaryrefslogtreecommitdiff
path: root/htdocs/postings.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-05-24 17:08:38 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-05-24 17:08:38 -0700
commita39f9512f0efd3ec3e0a31df656e25dd3f824f6d (patch)
tree70e797cc9b1f8978f73799fc0d181e9005859530 /htdocs/postings.php
parentb41edfdbeb371f3259da1470a5533523939b42a0 (diff)
Working on moderation approve/reject
Diffstat (limited to 'htdocs/postings.php')
-rw-r--r--htdocs/postings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/postings.php b/htdocs/postings.php
index c6f53d5..e43f24e 100644
--- a/htdocs/postings.php
+++ b/htdocs/postings.php
@@ -28,7 +28,7 @@ if (!is_numeric($id)) {
// Get the post.
$post = Post::getById($id);
-if (!$post) {
+if (!$post or $post->getStage() != 'approved') {
errorNotFound();
}