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;