[extensions-web] extension: Remove pre-lock peek constraint



commit 1bd45fb57e0f3ee87b091a15e02b52a419b75072
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Mar 4 16:23:26 2012 -0500

    extension: Remove pre-lock peek constraint
    
    Before, there was the idea that before an extension was submitted, it was
    in a state where nobody should be able to look at it. Now that the notion
    of locking is ditched, we can ditch this too.

 sweettooth/extensions/views.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 453d04c..d7a3b62 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -196,10 +196,6 @@ def extension_version_view(request, obj, **kwargs):
         # for pre-lock.
         is_preview = True
 
-        # Don't allow anybody (even moderators) to peek pre-lock.
-        if extension.creator != request.user:
-            raise Http404()
-
     # Redirect if we don't match the slug or extension PK.
     slug = kwargs.get('slug')
     extpk = kwargs.get('ext_pk')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]