Hello,
When using a custom model with a 'parent' argument, I get the following error when doing a search on the model archive in the backend: "Sorry, you are not allowed to access this page." Opening, closing, editing, adding all works fine. When removing the 'parent', I can also search. And the user (administrator) has full access over the hccf_household custom post type. Here is my model registration code.
mb_register_model( 'hccf_transaction', [
'table' => $wpdb->prefix.'hccf_transactions',
'labels' => [
'name' => 'Transactions',
'singular_name' => 'Transaction',
'edit_item' => 'Edit Transaction'
],
'menu_icon' => 'dashicons-media-document',
'capability' => 'manage_transactions',
'parent' => 'edit.php?post_type=hccf_household',
] );
Thank you for looking into this!
Johannes