summary refs log tree commit diff
path: root/synapse/rest/admin/__init__.py
diff options
context:
space:
mode:
authorreivilibre <38398653+reivilibre@users.noreply.github.com>2019-08-28 09:44:22 +0100
committerGitHub <noreply@github.com>2019-08-28 09:44:22 +0100
commita3f06356860de1ff727a8df1f38ea4afd5d70bd5 (patch)
tree9894346894a293b4214fc723890af1593eb18c5f /synapse/rest/admin/__init__.py
parentTypographical corrections in docker/README (#5921) (diff)
parentDocument GET method for retrieving admin bit of user in admin API (diff)
downloadsynapse-a3f06356860de1ff727a8df1f38ea4afd5d70bd5.tar.xz
Merge pull request #5914 from matrix-org/rei/admin_getadmin
Add GET method to admin API /users/@user:dom/admin
Diffstat (limited to 'synapse/rest/admin/__init__.py')
-rw-r--r--synapse/rest/admin/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/__init__.py b/synapse/rest/admin/__init__.py
index 9ab1c2c9e0..fa91cc8dee 100644
--- a/synapse/rest/admin/__init__.py
+++ b/synapse/rest/admin/__init__.py
@@ -52,7 +52,7 @@ logger = logging.getLogger(__name__)
 
 
 class UsersRestServlet(RestServlet):
-    PATTERNS = historical_admin_path_patterns("/users/(?P<user_id>[^/]*)")
+    PATTERNS = historical_admin_path_patterns("/users/(?P<user_id>[^/]*)$")
 
     def __init__(self, hs):
         self.hs = hs