Allow deleting releases with broken tasks

This commit is contained in:
rubenwardy 2020-01-19 01:23:56 +00:00
parent 1b1c94ffa0
commit ec8a88a7a8
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ class PackageRelease(db.Model):
if not (isOwner or user.rank.atLeast(UserRank.EDITOR)):
return False
if not self.package.approved:
if not self.package.approved or self.task_id is not None:
return True
count = PackageRelease.query \