[extensions-web] Users without review credentials should be able to look at reviews...
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Users without review credentials should be able to look at reviews...
- Date: Tue, 15 Nov 2011 20:41:36 +0000 (UTC)
commit ab01a36a3e37c26cbad04e554913f658a2051872
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Nov 15 15:36:26 2011 -0500
Users without review credentials should be able to look at reviews...
Just not submit them...
sweettooth/review/views.py | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index f2fefc9..15567e3 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -121,9 +121,6 @@ def get_diff(old_zipfile, new_zipfile, filename, highlight):
def ajax_get_file_list_view(request, obj):
version, extension = obj, obj.extension
- if not can_review_extension(request.user, extension):
- return HttpResponseForbidden()
-
old_zipfile, new_zipfile = get_zipfiles(version)
new_filelist = set(new_zipfile.namelist())
@@ -142,9 +139,6 @@ def ajax_get_file_list_view(request, obj):
def ajax_get_file_diff_view(request, obj):
version, extension = obj, obj.extension
- if not can_review_extension(request.user, extension):
- return HttpResponseForbidden()
-
filename = request.GET['filename']
highlight = request.GET.get('highlight', True)
@@ -169,9 +163,6 @@ def ajax_get_file_diff_view(request, obj):
@ajax_view
@model_view(models.ExtensionVersion)
def ajax_get_file_view(request, obj):
- if not can_review_extension(request.user, obj.extension):
- return HttpResponseForbidden()
-
zipfile = obj.get_zipfile('r')
filename = request.GET['filename']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]