Developers are hosts for every sponsor now.
authorLennard de Rijk <ljvderijk@gmail.com>
Mon, 26 Jan 2009 14:51:07 +0000
changeset 999 71f15c023847
parent 998 125257161908
child 1000 9af147fc1f1c
Developers are hosts for every sponsor now. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/access.py
--- a/app/soc/views/helper/access.py	Mon Jan 26 09:44:00 2009 +0000
+++ b/app/soc/views/helper/access.py	Mon Jan 26 14:51:07 2009 +0000
@@ -359,7 +359,7 @@
   """
 
   try:
-    # if the current user is invited to create a host profile we allow access
+    # if the current user is a developer we allow access
     checkIsDeveloper(kwargs)
     return
   except out_of_band.Error:
@@ -398,6 +398,13 @@
     * if the user is not even logged in
   """
 
+  try:
+    # if the current user is a developer we allow access
+    checkIsDeveloper(kwargs)
+    return
+  except out_of_band.Error:
+    pass
+
   checkAgreesToSiteToS(kwargs)
 
   user = user_logic.getForCurrentAccount()