summary refs log tree commit diff
path: root/synapse/rest/client/v1/directory.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-01 14:46:31 +0000
committerErik Johnston <erik@matrix.org>2016-03-01 14:46:31 +0000
commitf9af8962f8ea6201ed3910eb248b8668f1262fef (patch)
treeedf18765c87fa0befbb928f4ca37022bb0faf078 /synapse/rest/client/v1/directory.py
parentMerge pull request #611 from matrix-org/erikj/expiring_cache_size (diff)
downloadsynapse-f9af8962f8ea6201ed3910eb248b8668f1262fef.tar.xz
Allow alias creators to delete aliases
Diffstat (limited to 'synapse/rest/client/v1/directory.py')
-rw-r--r--synapse/rest/client/v1/directory.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/synapse/rest/client/v1/directory.py b/synapse/rest/client/v1/directory.py
index 74ec1e50e0..55c22000fd 100644
--- a/synapse/rest/client/v1/directory.py
+++ b/synapse/rest/client/v1/directory.py
@@ -118,9 +118,6 @@ class ClientDirectoryServer(ClientV1RestServlet):
 
         requester = yield self.auth.get_user_by_req(request)
         user = requester.user
-        is_admin = yield self.auth.is_server_admin(user)
-        if not is_admin:
-            raise AuthError(403, "You need to be a server admin")
 
         room_alias = RoomAlias.from_string(room_alias)