# HG changeset patch # User Sverre Rabbelier # Date 1237134653 0 # Node ID a77d4cdcc052dfe6d684e99036e1a07ca8589b6d # Parent 69d60793092a1d57265f3d2068a3348fe12cff45 Allow backup admins to edit org application Patch by: Sverre Rabbelier diff -r 69d60793092a -r a77d4cdcc052 app/soc/views/helper/access.py --- a/app/soc/views/helper/access.py Sun Mar 15 16:30:26 2009 +0000 +++ b/app/soc/views/helper/access.py Sun Mar 15 16:30:53 2009 +0000 @@ -1005,6 +1005,14 @@ if entity: return + del fields['applicant'] + fields['backup_admin'] = self.user + + entity = group_app_logic.getForFields(fields) + + if entity: + return + raise out_of_band.AccessViolation(message_fmt=DEF_NOT_YOUR_ENTITY_MSG) @allowSidebar