mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 14:32:25 +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)):
|
if not (isOwner or user.rank.atLeast(UserRank.EDITOR)):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not self.package.approved:
|
if not self.package.approved or self.task_id is not None:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
count = PackageRelease.query \
|
count = PackageRelease.query \
|
||||||
|
Loading…
Reference in New Issue
Block a user