summary refs log tree commit diff
path: root/webclient/room
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 15:18:57 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 15:20:09 +0200
commit4c7da89219894ed565992a4209a23ddcbfa42a33 (patch)
treebb654b1a839ff28eb139a3ad248e8257603b10f4 /webclient/room
parentAdded /deop $user_id (diff)
downloadsynapse-4c7da89219894ed565992a4209a23ddcbfa42a33.tar.xz
Do not define power level limits in setUserPowerLevel. Update the function to be used as a resetUserPowerLevel
Diffstat (limited to '')
-rw-r--r--webclient/room/room-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index ab8b35961c..77e93e8930 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -311,7 +311,7 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
                     // Reset the power level of an user
                     if (2 === args.length) {
                         var user_id = args[1];
-                        promise = matrixService.resetUserPowerLevel($scope.room_id, user_id);
+                        promise = matrixService.setUserPowerLevel($scope.room_id, user_id, undefined);
                     }
                     break;
             }