We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9218b27 commit ed07070Copy full SHA for ed07070
sogs/model/room.py
@@ -1517,10 +1517,9 @@ def permissions(self):
1517
):
1518
data = dict()
1519
for k in row.keys():
1520
- if k not in ('session_id', 'room', 'user'):
1521
- if k in ('banned', 'moderator', 'admin', 'visible_mod') and not row[k]:
1522
- continue # only include banned when true
1523
- if row[k] is not None:
+ if k in ('banned', 'moderator', 'admin', 'visible_mod') and not row[k]:
+ continue # only include banned when true
+ if row[k] is not None and k not in ('session_id', 'room', 'user'):
1524
data[k] = bool(row[k])
1525
ret[row['session_id']] = data
1526
return ret
0 commit comments