Model Search with Parent Permission Error

Support MB Custom Table Model Search with Parent Permission ErrorResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47223
    Johannes GrossJohannes Gross
    Participant

    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

    #47231
    PeterPeter
    Moderator

    Hello Johannes,

    Thank you for your feedback.

    I can reproduce the issue on my site and I've escalated the issue to the development team to fix this. I will get back to you when I have more information.

    #47232
    Johannes GrossJohannes Gross
    Participant

    Thank you! I appreciate it.

    #47282
    Tan NguyenTan Nguyen
    Participant

    Dear Johannes,

    I have fixed the issue, you will get an update soon.

    Cheers!

    #47288
    Johannes GrossJohannes Gross
    Participant

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.