Skip to content

Commit 6e373ab

Browse files
majestratejagerman
authored andcommitted
dont filter data in model
1 parent c3c88cd commit 6e373ab

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sogs/model/room.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,8 +1517,6 @@ def permissions(self):
15171517
):
15181518
data = dict()
15191519
for k in row.keys():
1520-
if k in ('banned', 'moderator', 'admin', 'visible_mod') and not row[k]:
1521-
continue # only include banned when true
15221520
if row[k] is not None and k not in ('session_id', 'room', 'user'):
15231521
data[k] = bool(row[k])
15241522
ret[row['session_id']] = data

0 commit comments

Comments
 (0)