You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a sub menu that hides the options of the submenu if I do not have the permission, but it leaves me the name of the menu, I do not know if you understand. I attach images.
User with permission has access to see the Management Report menu. ✔✔
User without permission should NOT have access to see the Management Report menu.
This is the code
->submenu(
Spatie\Menu\Link::to('#','<i class="ri-folder-chart-line"></i><span>Reportes Gerenciales</span><i
class="ri-arrow-right-s-line iq-arrow-right"></i>')
->addClass('iq-waves-effect'),
Menu::new()
->addClass('iq-submenu')
->routeIfCan('view all reports', 'home.salesManager', 'Desempeño de leads')
->routeIfCan('view all reports', 'home.historicalReports', 'Historico de ejecutivo')
)
This discussion was converted from issue #109 on April 09, 2021 10:26.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created a sub menu that hides the options of the submenu if I do not have the permission, but it leaves me the name of the menu, I do not know if you understand. I attach images.
User with permission has access to see the Management Report menu. ✔✔
User without permission should NOT have access to see the Management Report menu.
This is the code
Beta Was this translation helpful? Give feedback.
All reactions