app/soc/views/helper/access.py
changeset 1177 53c802c2a2e2
parent 1176 c211191e7d81
child 1179 427d2ec42823
--- 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.