How To Set Permission For Newly Added Central Menu For Vendor In Mve

Hi guys,

I just tried to add new menu and controller by addons and they are works fine with store admin user, but when I switch to vendor the menu is gone and I think I add the permission already. Below is my code.
Please help, thank you very much.

Below is code under permission schema

 array(
        'view' => array(
            'permissions' => 'view_pd',
        ),
    ),
    'permissions' => 'view_pd',
);

return $schema;

 array(
        'view' => array(
            'permissions' => true,
        ),
    ),
    'permissions' => true,
);

return $schema;

Below is code under menu schema

 array(
        'pd_summary' => array(
            'attrs' => array(
                'class' => 'is-addon'
            ),
            'href' => 'performance_dashboard.view',
            'position' => 100,
        ),
    ),
    'position' => 701,
);
return $schema;

Hi guys,

I just want to update that I found the solution and the problem was my mistake.

The permissions directory did not nested under schemas, it was on the same level. That is why the menu is gone when I switch to vendor account because the permissions did not apply correctly.

I have the same trouble...

in menu.post.php I put :

$schema['central']['help']= array(
'items' => array(
'help_product' => array(
'href' => '#',
'position' => 100,
),
'help_shipping' => array(
'href' => '#',
'position' => 200,
),
'help_stripe' => array(
'href' => '#',
'position' => 300,
),
),
'position' => 700,
);

I'm unable to see that menu as any vendor