Skip to content

Commit

Permalink
Merge pull request #72 from IliyanIlievPH/master
Browse files Browse the repository at this point in the history
Update IsCampaignEditableCheck
  • Loading branch information
starkmsu committed Jun 18, 2020
2 parents bd859d5 + 1a1a6f3 commit 0e002bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public Task MarkCampaignsAsCompletedAsync()

private bool IsCampaignEditable(VoucherCampaign existingCampaign, VoucherCampaign updatedCampaign)
{
if (existingCampaign.State != CampaignState.Published || existingCampaign.FromDate > DateTime.UtcNow)
if (existingCampaign.State == CampaignState.Draft || existingCampaign.FromDate > DateTime.UtcNow)
return true;

if (existingCampaign.VoucherPrice != updatedCampaign.VoucherPrice ||
Expand Down

0 comments on commit 0e002bc

Please sign in to comment.