Author role can see post assigned to him with co-author
-
Hi,
I have the following senario:
User One (Administrator) creates a post. Assigns Users Two (Author) to the post with Co-Author.Then when User Two logs in he cannot see that post because of the SQL Query.
AND wp_posts.post_author IN (97) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled' OR wp_posts.post_status = 'future' OR wp_posts.post_status = 'draft' OR wp_posts.post_status = 'pending' OR (wp_posts.post_author = 97 OR (wp_term_taxonomy.taxonomy = 'author' AND wp_term_taxonomy.term_id = '198')) AND wp_posts.post_status = 'private')
AND wp_posts.post_author IN (97) is the problem. I can ofc do a preg_replace but the question is: Have I done something wrong here or should an author only see his posts where he is the TRUE author?
Best regards
Carl
- The topic ‘Author role can see post assigned to him with co-author’ is closed to new replies.