Closed almakano closed 3 years ago
That is how I spent 2 days, discovering the required policy name to be "browse_partnersmanager_efficiency". Also, I discovered, that if route link has "-" in it, it should also be in policy name, like "browse_partners-statmanager_efficiency"
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Laravel version
7.30.4
PHP version
7.4.3
Voyager version
1.x-dev#110229618c035600fc55c2104bd629701d96c283
Database
Mysql 8.0.25
Description
Menu item with dynamic route "voyager.partners.manager_efficiency" is showed to user, which is restricted by policies
Steps to reproduce
Expected behavior
tcg/voyager/src/Policies/MenuItemPolicy.php:33 $slug shoud parse full route of menu item and not only $model->link(true)
Screenshots
No response
Additional context
No response