From 66a5bc4fad9c60846b467389e2ae83067b6bb23c Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Wed, 3 Sep 2014 18:19:26 +0100
Subject: [PATCH] Fix ban path

---
 webclient/components/matrix/matrix-service.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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, {
-- 
GitLab