Set user id to be string in member specific channel overwrite

This commit is contained in:
Jeremy "EndenDragon" Zhang 2018-02-21 14:52:08 -08:00 committed by GitHub
parent 1d085d328b
commit 19a44cb77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ def get_channel_permission(channel, guild_id, guild_owner, guild_roles, member_r
# member specific
for overwrite in channel["permission_overwrites"]:
if overwrite["type"] == "member" and overwrite["id"] == session.get("user_id"):
if overwrite["type"] == "member" and overwrite["id"] == str(session.get("user_id")):
channel_perm = (channel_perm & ~overwrite['deny']) | overwrite['allow']
break
@ -328,4 +328,4 @@ babel = Babel()
@socketio.on_error_default # disconnect on all errors
def default_socketio_error_handler(e):
disconnect()
disconnect()