Renamed checkIsHostForProgram to checkIsHostForSponsor.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/helper/access.py Sun Jan 25 22:30:42 2009 +0000
+++ b/app/soc/views/helper/access.py Sun Jan 25 22:42:09 2009 +0000
@@ -383,7 +383,7 @@
raise out_of_band.LoginRequest(message_fmt=login_message_fmt)
-def checkIsHostForProgram(kwargs):
+def checkIsHostForSponsor(kwargs):
"""Raises an alternate HTTP response if Google Account has no Host entity
for the specified Sponsor.
--- a/app/soc/views/models/sponsor.py Sun Jan 25 22:30:42 2009 +0000
+++ b/app/soc/views/models/sponsor.py Sun Jan 25 22:42:09 2009 +0000
@@ -48,10 +48,10 @@
rights = {}
rights['create'] = [access.checkIsDeveloper]
- rights['edit'] = [access.checkIsHostForProgram]
+ rights['edit'] = [access.checkIsHostForSponsor]
rights['delete'] = [access.checkIsDeveloper]
rights['list'] = [access.checkIsDeveloper]
- rights['list_requests'] = [access.checkIsHostForProgram]
+ rights['list_requests'] = [access.checkIsHostForSponsor]
new_params = {}
new_params['logic'] = soc.logic.models.sponsor.logic