From b35564cb85e580141ba99b2a8c6792d65fabea35 Mon Sep 17 00:00:00 2001 From: Mihaela Stoica Date: Mon, 15 Aug 2016 14:27:43 +0100 Subject: [PATCH] CA-147142: ReadOnly user should not be allowed to delete crash dump files - Made the action PureAsyncAction, so that it automatically checks if the current user can perform all the necessary api calls Signed-off-by: Mihaela Stoica --- XenModel/Actions/Host/DestroyHostCrashDumpAction.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XenModel/Actions/Host/DestroyHostCrashDumpAction.cs b/XenModel/Actions/Host/DestroyHostCrashDumpAction.cs index cbfedb1a4..7840adbf4 100644 --- a/XenModel/Actions/Host/DestroyHostCrashDumpAction.cs +++ b/XenModel/Actions/Host/DestroyHostCrashDumpAction.cs @@ -37,7 +37,7 @@ using XenAPI; namespace XenAdmin.Actions { - public class DestroyHostCrashDumpAction : AsyncAction + public class DestroyHostCrashDumpAction : PureAsyncAction { private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);