From 19a44cb77bf442f2de41578b98451910cf0ff7c3 Mon Sep 17 00:00:00 2001 From: "Jeremy \"EndenDragon\" Zhang" Date: Wed, 21 Feb 2018 14:52:08 -0800 Subject: [PATCH] Set user id to be string in member specific channel overwrite --- webapp/titanembeds/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/titanembeds/utils.py b/webapp/titanembeds/utils.py index 82c4595..9b31a2b 100644 --- a/webapp/titanembeds/utils.py +++ b/webapp/titanembeds/utils.py @@ -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() \ No newline at end of file + disconnect()