diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-03-29 20:47:48 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-03-29 20:52:08 +0000 |
commit | 93a74b7681bac8cfe5ea5092943bf76af207a3d0 (patch) | |
tree | 869b0ce3d8b763d24cca844e5d8a6f66cf5923d4 /app/views/packages/releases.py | |
parent | 2677e088a85f9d31b7939874ea414d4ce5429e23 (diff) | |
download | cheatdb-93a74b7681bac8cfe5ea5092943bf76af207a3d0.tar.xz |
Fix release auto-approval
Diffstat (limited to 'app/views/packages/releases.py')
-rw-r--r-- | app/views/packages/releases.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/packages/releases.py b/app/views/packages/releases.py index 45935e3..af17c93 100644 --- a/app/views/packages/releases.py +++ b/app/views/packages/releases.py @@ -85,7 +85,6 @@ def create_release_page(package): rel.task_id = uuid() rel.min_rel = form["min_rel"].data.getActual() rel.max_rel = form["max_rel"].data.getActual() - rel.approved = package.checkPerm(current_user, Permission.APPROVE_RELEASE) db.session.add(rel) db.session.commit() @@ -105,7 +104,7 @@ def create_release_page(package): rel.url = uploadedPath rel.min_rel = form["min_rel"].data.getActual() rel.max_rel = form["max_rel"].data.getActual() - rel.approved = package.checkPerm(current_user, Permission.APPROVE_RELEASE) + rel.approve(current_user) db.session.add(rel) db.session.commit() |