--- a/app/soc/views/helper/access.py Thu Feb 05 19:30:43 2009 +0000
+++ b/app/soc/views/helper/access.py Thu Feb 05 20:19:17 2009 +0000
@@ -661,14 +661,13 @@
raise out_of_band.AccessViolation(message_fmt=DEF_SCOPE_INACTIVE_MSG)
+ @allowDeveloper
@denySidebar
- @allowDeveloper
def checkIsHostForProgram(self, django_args):
"""Checks if the user is a host for the specified program.
"""
- key_fields = program_logic.getKeyFieldsFromFields(django_args)
- program = program_logic.getFromKeyFields(key_fields)
+ program = program_logic.getFromKeyFields(django_args)
if not program or program.status == 'invalid':
self.deny(django_args)
@@ -877,8 +876,7 @@
django_args: a dictionary with django's arguments
"""
- key_fields = document_logic.getKeyFieldsFromFields(django_args)
- document = document_logic.getFromKeyFields(key_fields)
+ document = document_logic.getFromKeyFields(django_args)
self.checkMembership('write', document.prefix,
document.write_access, django_args)