| @@ -2005,9 +2005,9 @@ | ||
| 2005 | 2005 | $post_id = intval( $args['template_id'] ); |
| 2006 | 2006 | $post_status = $this->wordpress_adapter->get_post_status( $post_id ); |
| 2007 | 2007 | $is_private_or_non_published = ( 'private' === $post_status && ! $this->wordpress_adapter->current_user_can( 'read_private_posts', $post_id ) ) || ( 'publish' !== $post_status ); |
| 2008 | 2008 | |
| 2009 | - $can_read_template = ! $is_private_or_non_published || $this->wordpress_adapter->current_user_can( 'edit_post', $post_id ); | |
| 2009 | + $can_read_template = $is_private_or_non_published || $this->wordpress_adapter->current_user_can( 'edit_post', $post_id ); | |
| 2010 | 2010 | |
| 2011 | 2011 | return apply_filters( 'elementor/template-library/is_allowed_to_read_template', $can_read_template, $args ); |
| 2012 | 2012 | } |
| 2013 | 2013 | |