[extensions-web] Revert "review: Rename "can-review-extensions" to "can-approve-extensions""
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Revert "review: Rename "can-review-extensions" to "can-approve-extensions""
- Date: Sun, 4 Mar 2012 18:07:25 +0000 (UTC)
commit 4519eb3574c2f0983d31f71969bf66e69c58f5e4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Mar 4 13:06:31 2012 -0500
Revert "review: Rename "can-review-extensions" to "can-approve-extensions""
This reverts commit c9d4f9df84da366c0b58b6bc47d5ca1f7d588b3f.
This caused havoc, so let's just leave it as-is.
sweettooth/review/models.py | 4 ++--
sweettooth/review/views.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/review/models.py b/sweettooth/review/models.py
index 95040da..2c49f7e 100644
--- a/sweettooth/review/models.py
+++ b/sweettooth/review/models.py
@@ -6,7 +6,7 @@ from django.db.models import Q
from extensions.models import ExtensionVersion, STATUSES
def get_all_reviewers():
- perm = Permission.objects.get(codename="can-approve-extensions")
+ perm = Permission.objects.get(codename="can-review-extensions")
# Dark magic to get all the users with a specific permission
# Thanks to <schinckel> in #django
@@ -22,7 +22,7 @@ class CodeReview(models.Model):
class Meta:
permissions = (
- ("can-approve-extensions", "Can approve extensions"),
+ ("can-review-extensions", "Can review extensions"),
)
class ChangeStatusLog(models.Model):
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index de648e8..9d1490c 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -56,13 +56,13 @@ def can_review_extension(user, extension):
if user == extension.creator:
return True
- if user.has_perm("review.can-approve-extensions"):
+ if user.has_perm("review.can-review-extensions"):
return True
return False
def can_approve_extension(user, extension):
- return user.has_perm("review.can-approve-extensions")
+ return user.has_perm("review.can-review-extensions")
def highlight_file(filename, raw, formatter):
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]