Merge branch 'develop' of github.com:tainacan/tainacan into develop
This commit is contained in:
commit
5aa869b4a7
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue