From 4a1c13c6b201de759b28d8debb82e2283c19231b Mon Sep 17 00:00:00 2001 From: Danilo Del Busso Date: Fri, 28 Apr 2023 10:11:31 +0100 Subject: [PATCH] Suppress history when running user authorization action in `RoleElevationDialog` RBAC check sometimes runs after the action that is being checked. This results in the status bar being cleared if the RBAC check passes. Signed-off-by: Danilo Del Busso --- XenAdmin/Dialogs/RoleElevationDialog.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XenAdmin/Dialogs/RoleElevationDialog.cs b/XenAdmin/Dialogs/RoleElevationDialog.cs index 1f3c57675..258ba5580 100644 --- a/XenAdmin/Dialogs/RoleElevationDialog.cs +++ b/XenAdmin/Dialogs/RoleElevationDialog.cs @@ -94,7 +94,7 @@ namespace XenAdmin.Dialogs { Exception delegateException = null; log.Debug("Testing logging in with the new credentials"); - DelegatedAsyncAction loginAction = new DelegatedAsyncAction(connection, + var loginAction = new DelegatedAsyncAction(connection, Messages.AUTHORIZING_USER, Messages.CREDENTIALS_CHECKING, Messages.CREDENTIALS_CHECK_COMPLETE, @@ -108,7 +108,7 @@ namespace XenAdmin.Dialogs { delegateException = ex; } - }); + }, true); using (var dlg = new ActionProgressDialog(loginAction, ProgressBarStyle.Marquee) {ShowTryAgainMessage = false}) dlg.ShowDialog(this);