Sfoglia il codice sorgente

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

pull/24/head
Teknikode 6 anni fa
parent
commit
edea2fe1c6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      blog/publish_post.php

+ 1
- 1
blog/publish_post.php Vedi 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…
Annulla
Salva