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
<?php // This is admin_multivendor.post.php $schema['performance_dashboard'] = array( 'modes' => array( 'view' => array( 'permissions' => 'view_pd', ), ), 'permissions' => 'view_pd', );return $schema;
<?php // This is vendor_multivendor.post.php $schema['controllers']['performance_dashboard'] = array ( 'modes' => array( 'view' => array( 'permissions' => true, ), ), 'permissions' => true, ); return $schema;
Below is code under menu schema
<?php // This is menu_multivendor.post.php $schema['central']['performance_dashboard'] = array( 'items' => array( 'pd_summary' => array( 'attrs' => array( 'class' => 'is-addon' ), 'href' => 'performance_dashboard.view', 'position' => 100, ), ), 'position' => 701, ); return $schema;