Merge branch 'develop' of github.com:tainacan/tainacan into develop

This commit is contained in:
Jacson Passold 2018-03-01 13:50:44 -03:00
commit 5aa869b4a7
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class Items extends Repository {
*/ */
if (!isset($args['post_status'])) { if (!isset($args['post_status'])) {
$status_obj = get_post_status_object( $collection->get_status() ); $status_obj = get_post_status_object( $collection->get_status() );
if ( $status_obj->public || current_user_can( $collection->cap->read_private_posts, $collection->get_id() ) ) { if ( $status_obj->public || current_user_can( $collection->cap->read_private_posts ) ) {
$cpt[] = $collection->get_db_identifier(); $cpt[] = $collection->get_db_identifier();
} }
} else { } else {