Add all the necessary checks to make banning work.

This commit is contained in:
Erik Johnston 2014-09-01 18:24:56 +01:00
parent 3faa2ae78c
commit b8ab9f1c0a
6 changed files with 54 additions and 6 deletions

View file

@ -165,8 +165,7 @@ class RoomStore(SQLBaseStore):
rows = txn.execute(sql, (room_id, user_id,)).fetchall()
if len(rows) == 1:
defer.returnValue(rows[0][0])
return
return rows[0][0]
sql = (
"SELECT level FROM room_default_levels as r "