mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01:00
Allow deleting releases with broken tasks
This commit is contained in:
parent
1b1c94ffa0
commit
ec8a88a7a8
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user