summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-03 18:19:26 +0100
committerErik Johnston <erik@matrix.org>2014-09-03 18:19:57 +0100
commit66a5bc4fad9c60846b467389e2ae83067b6bb23c (patch)
tree63530a05c3af2d57af7615ff25ce26edf24e3038 /webclient
parentAdd support to _simple_insert() to do INSERT OR REPLACE (diff)
downloadsynapse-66a5bc4fad9c60846b467389e2ae83067b6bb23c.tar.xz
Fix ban path
Diffstat (limited to 'webclient')
-rw-r--r--webclient/components/matrix/matrix-service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/components/matrix/matrix-service.js b/webclient/components/matrix/matrix-service.js
index 165930fbc1..9ca4135f7f 100644
--- a/webclient/components/matrix/matrix-service.js
+++ b/webclient/components/matrix/matrix-service.js
@@ -180,7 +180,7 @@ angular.module('matrixService', [])
            
         // Bans a user from from a room
         ban: function(room_id, user_id, reason) {
-            var path = "/rooms/$room_id/ban/";
+            var path = "/rooms/$room_id/ban";
             path = path.replace("$room_id", encodeURIComponent(room_id));
             
             return doRequest("POST", path, undefined, {