diff --git a/src/Views/Shared/_Layout.cshtml b/src/Views/Shared/_Layout.cshtml
index 20fc558..1f98dc8 100644
--- a/src/Views/Shared/_Layout.cshtml
+++ b/src/Views/Shared/_Layout.cshtml
@@ -1,4 +1,5 @@
@using Microsoft.AspNetCore.Mvc.Localization
+@using System.Security.Claims
@inject IViewLocalizer T
@@ -32,23 +33,38 @@
@T["Quick-Actions"]
- @if (User.Identity.IsAuthenticated)
+ @if (User.Identity?.IsAuthenticated ?? false)
{
-
- @T["Inventory"]
-
-
- @T["Assets"]
-
-
- @T["Locations"]
-
-
- @T["Users"]
-
-
- @T["Groups"]
-
+ @if (User.HasClaim(ClaimTypes.Role, "CanInventorize"))
+ {
+
+ @T["Inventory"]
+
+ }
+ @if (User.HasClaim(ClaimTypes.Role, "CanManageAssets"))
+ {
+
+ @T["Assets"]
+
+ }
+ @if (User.HasClaim(ClaimTypes.Role, "CanManageLocations"))
+ {
+
+ @T["Locations"]
+
+ }
+ @if (User.HasClaim(ClaimTypes.Role, "CanManageUsers"))
+ {
+
+ @T["Users"]
+
+ }
+ @if (User.HasClaim(ClaimTypes.Role, "CanManageGroups"))
+ {
+
+ @T["Groups"]
+
+ }
}
@if (User.Identity.IsAuthenticated)