From e41a64a164f3a64eb405b99eb9c00b41f8562b12 Mon Sep 17 00:00:00 2001 From: Daniel Balk <67603460+Daniel-Balk@users.noreply.github.com> Date: Wed, 12 Apr 2023 19:13:01 +0200 Subject: [PATCH] silent onlyadmin --- Moonlight/Shared/Components/StateLogic/OnlyAdmin.razor | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Moonlight/Shared/Components/StateLogic/OnlyAdmin.razor b/Moonlight/Shared/Components/StateLogic/OnlyAdmin.razor index e5d16a8..194c646 100644 --- a/Moonlight/Shared/Components/StateLogic/OnlyAdmin.razor +++ b/Moonlight/Shared/Components/StateLogic/OnlyAdmin.razor @@ -7,7 +7,7 @@ { @ChildContent } - else + else if(!Silent) {
Missing admin permissions. This attempt has been logged ;) @@ -22,4 +22,7 @@ [CascadingParameter] public User? User { get; set; } + + [Parameter] + public bool Silent { get; set; } = false; }