diff --git a/includes/classes/PullListTable.php b/includes/classes/PullListTable.php index 759afe833..8c1041a88 100644 --- a/includes/classes/PullListTable.php +++ b/includes/classes/PullListTable.php @@ -367,9 +367,12 @@ public function column_name( $item ) { if ( ! empty( $new_post ) ) { $actions = [ - 'edit' => '' . esc_html__( 'Edit', 'distributor' ) . '', 'view' => '' . esc_html__( 'View', 'distributor' ) . '', ]; + + if ( current_user_can( 'edit_post', $new_post_id ) ) { + $actions['edit'] = '' . esc_html__( 'Edit', 'distributor' ) . ''; + } } }