refac
This commit is contained in:
1 parent
0cbf337679
commit
d14fddf254
1 file changed
+2
-1
@@ -394,7 +394,8 @@ async def user_join(sid, data):
|
|||||||
),
|
),
|
||||||
'last_seen_at': int(time.time()),
|
'last_seen_at': int(time.time()),
|
||||||
}
|
}
|
||||||
await sio.enter_room(sid, f'user:{user.id}')
|
|
||||||
|
await sio.enter_room(sid, f'user:{user.id}')
|
||||||
|
|
||||||
# Join all the channels only if user has channels permission
|
# Join all the channels only if user has channels permission
|
||||||
if user.role == 'admin' or await has_permission(user.id, 'features.channels'):
|
if user.role == 'admin' or await has_permission(user.id, 'features.channels'):
|
||||||
|
|||||||
Reference in new issue
Block a user