# HG changeset patch # User Sverre Rabbelier # Date 1233583764 0 # Node ID 53c802c2a2e266d71084f9113371ed6910ffa006 # Parent c211191e7d81b58e3465b9af2a6d7aa6b77ef967 More access related fixes Patch by: Sverre Rabbelier diff -r c211191e7d81 -r 53c802c2a2e2 app/soc/views/helper/access.py --- a/app/soc/views/helper/access.py Mon Feb 02 13:59:07 2009 +0000 +++ b/app/soc/views/helper/access.py Mon Feb 02 14:09:24 2009 +0000 @@ -447,7 +447,7 @@ if self.user.link_id == django_args[field_name]: return - raise out_of_band.AccessViolation() + raise out_of_band.AccessViolation(DEF_NOT_YOUR_ENTITY_MSG) def checkIsUnusedAccount(self, django_args): """Raises an alternate HTTP response if Google Account has a User entity. @@ -597,7 +597,7 @@ if entity and (entity.scope.status not in ['invalid', 'inactive']): return - raise out_of_band.AccessViolation(message_fmt=DEF_CANNOT_CREATE_MSG) + raise out_of_band.AccessViolation(message_fmt=DEF_NO_REQUEST_MSG) def checkIsMyGroupAcceptedRequest(self, django_args): """Checks whether the user can accept the specified request.