From 04b8d45af4052a8bc9430deada3eb53856c5dcdb Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sat, 30 Sep 2023 16:39:17 -0500 Subject: [PATCH] Only show approval button is approval is required --- LANCommander/Pages/Settings/Users/Index.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LANCommander/Pages/Settings/Users/Index.razor b/LANCommander/Pages/Settings/Users/Index.razor index 4c76037..4822690 100644 --- a/LANCommander/Pages/Settings/Users/Index.razor +++ b/LANCommander/Pages/Settings/Users/Index.razor @@ -20,7 +20,7 @@ - @if (!context.Approved) + @if (Settings.Authentication.RequireApproval && !context.Approved) { @@ -66,6 +66,7 @@ @code { ICollection UserList { get; set; } + LANCommanderSettings Settings = SettingService.GetSettings(); bool Loading = true; protected override async Task OnInitializedAsync()