Developers are hosts for every sponsor now.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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()