Skip to content

Commit

Permalink
Make sure we can't rollback trashed items serverside
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenn Jacobsen authored and emmaburstow committed Nov 5, 2019
1 parent a78aab6 commit 759e3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Services/Implement/ContentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3083,7 +3083,7 @@ public OperationResult Rollback(int id, int versionId, string culture = "*", int
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);
}
Expand Down

0 comments on commit 759e3dd

Please sign in to comment.