summary refs log tree commit diff
path: root/synapse/api/errors.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-01-06 18:10:11 +0100
committerMark Haines <mjark@negativecurvature.net>2016-01-06 18:10:11 +0100
commitc582f178b77f040f7f2707f3bd6d5384f9ba12c7 (patch)
tree9fe6c34aeeeb88687339b4737615f3c66bd9fd11 /synapse/api/errors.py
parentLog when starting stats reporting (diff)
parentPass whether the user was a guest to some of the event streams (diff)
downloadsynapse-c582f178b77f040f7f2707f3bd6d5384f9ba12c7.tar.xz
Merge pull request #469 from matrix-org/markjh/joined_guest_access
Guest users must be joined to a room to see it in /sync
Diffstat (limited to 'synapse/api/errors.py')
-rw-r--r--synapse/api/errors.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py
index 8bc7b9e6db..d4037b3d55 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -120,22 +120,6 @@ class AuthError(SynapseError):
         super(AuthError, self).__init__(*args, **kwargs)
 
 
-class GuestAccessError(AuthError):
-    """An error raised when a there is a problem with a guest user accessing
-    a room"""
-
-    def __init__(self, rooms, *args, **kwargs):
-        self.rooms = rooms
-        super(GuestAccessError, self).__init__(*args, **kwargs)
-
-    def error_dict(self):
-        return cs_error(
-            self.msg,
-            self.errcode,
-            rooms=self.rooms,
-        )
-
-
 class EventSizeError(SynapseError):
     """An error raised when an event is too big."""