# HG changeset patch # User Lennard de Rijk # Date 1232923329 0 # Node ID a6f67d4c297f5a0e9fc320bfa1445ef5c3940c1f # Parent 886c981fda2c806f39d775fb1d7e2fd105f95f29 Renamed checkIsHostForProgram to checkIsHostForSponsor. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 886c981fda2c -r a6f67d4c297f app/soc/views/helper/access.py --- 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. diff -r 886c981fda2c -r a6f67d4c297f app/soc/views/models/sponsor.py --- 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