mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-30 06:42:37 +02:00
Allow deleting releases with broken tasks
This commit is contained in:
@ -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 \
|
||||
|
Reference in New Issue
Block a user