summaryrefslogtreecommitdiff
path: root/htdocs/postings.php
diff options
context:
space:
mode:
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();
}