Skip to content

Commit 113fd59

Browse files
committed
Update capability check
1 parent 43bb28c commit 113fd59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/functions/_admin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function fictioneer_limit_users_to_own_posts_and_pages( $query ) {
390390
}
391391

392392
// Add author to query unless user is supposed to see other posts/pages
393-
if ( ! current_user_can( 'editor' ) ) {
393+
if ( ! current_user_can( 'edit_others_posts' ) ) {
394394
$query->set( 'author', get_current_user_id() );
395395
}
396396

0 commit comments

Comments
 (0)