Browse Source

Fixed not being able to publish a post unless you are admin.

pull/24/head
Teknikode 8 years ago
parent
commit
edea2fe1c6
  1. 2
      blog/publish_post.php

2
blog/publish_post.php

@ -11,7 +11,7 @@ if(isset($_POST) && $logged_in) @@ -11,7 +11,7 @@ if(isset($_POST) && $logged_in)
if ($post)
{
$success = true;
if ($success && !$user->admin && $post_select['author_id'] != $user->id)
if ($success && !$user->admin && $post['author_id'] != $user->id)
{
$error = "You are not allowed to publish this post.";
if (!$publish)

Loading…
Cancel
Save