Skip to content

Commit 83bd038

Browse files
committed
Fix permission ban query
1 parent 5eeb135 commit 83bd038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sogs/model/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ def future_permissions(self):
15331533
SELECT "user", at, read, write, upload, null AS banned
15341534
FROM user_permission_futures WHERE room = :r
15351535
UNION ALL
1536-
SELECT "user", at, null AS read, null AS write, null AS banned, banned
1536+
SELECT "user", at, null AS read, null AS write, null AS upload, banned
15371537
FROM user_ban_futures WHERE room = :r
15381538
) futures JOIN users ON futures."user" = users.id""",
15391539
r=self.id,

0 commit comments

Comments
 (0)