Browse Source

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

pull/24/head
Teknikode 4 years ago
parent
commit
edea2fe1c6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      blog/publish_post.php

+ 1
- 1
blog/publish_post.php View File

@@ -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