Make sure we can't rollback trashed items serverside

This commit is contained in:
Kenn Jacobsen
2019-10-30 18:06:48 +01:00
committed by emma burstow
parent a78aab628f
commit 759e3ddf5e

View File

@@ -3083,7 +3083,7 @@ namespace Umbraco.Core.Services.Implement
var version = GetVersion(versionId);
//Good ole null checks
if (content == null || version == null)
if (content == null || version == null || content.Trashed)
{
return new OperationResult(OperationResultType.FailedCannot, evtMsgs);
}