Skip to content

Commit 0087c30

Browse files
refactor: admin panel nav menu
1 parent a311fc8 commit 0087c30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/2-Clients/AdminPanel/Pages/Shared/NavMenu.razor

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@using CodeBlock.DevKit.Web.Blazor.Server.Attributes
1+
@using CanBeYours.Application.Helpers
2+
@using CodeBlock.DevKit.Web.Blazor.Server.Attributes
23
@inherits CustomNavMenu
34
@attribute [ReplaceBaseComponent]
45

@@ -13,7 +14,7 @@
1314

1415
<div class="collapse" id="demo-menu-group">
1516

16-
@if (CurrentUser.HasPermission("DemoThings"))
17+
@if (CurrentUser.HasPermission(Permissions.Demo.DEMO_THINGS))
1718
{
1819
<div class="nav-item">
1920
<NavLink @onclick="base.HandleNavItemClicked" class="nav-link ms-2" href="/demo-things">

0 commit comments

Comments
 (0)