Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bergomi02 committed Oct 17, 2024
1 parent 48fecc1 commit 2ec88f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prime-dotnet-webapi/Services/SiteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public async Task<bool> CanBeRestore(int siteId)
.Where(s => s.PEC == site.PEC && s.Id != site.Id).Select(s => s)
.ToListAsync();

return sites.Where(s => s.Status == SiteStatusType.Editable).Any();
return !sites.Where(s => s.Status == SiteStatusType.Editable).Any();
}
}
}

0 comments on commit 2ec88f8

Please sign in to comment.