[extensions-web] review: Do not auto-approve new extensions, for reals
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] review: Do not auto-approve new extensions, for reals
- Date: Mon, 9 Apr 2012 05:03:25 +0000 (UTC)
commit 9c4f1798ada4ed1cd8f82cb52be602abe744d483
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Apr 9 01:59:34 2012 -0300
review: Do not auto-approve new extensions, for reals
Double oops.
sweettooth/review/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 2ee5279..eeae5ec 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -399,7 +399,7 @@ def extension_submitted(sender, request, version, **kwargs):
old_zipfile, new_zipfile = get_zipfiles(get_latest_active_version(version), version)
changeset = get_file_changeset(old_zipfile, new_zipfile)
- if new_zipfile is not None and safe_to_auto_approve(changeset, extension=version.extension):
+ if old_zipfile is not None and safe_to_auto_approve(changeset, extension=version.extension):
log = ChangeStatusLog.objects.create(user=request.user,
version=version,
newstatus=models.STATUS_ACTIVE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]