mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Add all the necessary checks to make banning work.
This commit is contained in:
parent
3faa2ae78c
commit
b8ab9f1c0a
6 changed files with 54 additions and 6 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue