From 8209a5752435c6b95fe1e0d5512bf481d60b8456 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 29 Nov 2021 04:21:16 -0800 Subject: [PATCH] Fix obtaining userid in permissions calculation --- webapp/titanembeds/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/utils.py b/webapp/titanembeds/utils.py index 79ab7de..b4c4105 100644 --- a/webapp/titanembeds/utils.py +++ b/webapp/titanembeds/utils.py @@ -309,7 +309,7 @@ def get_channel_permission(channel, guild_id, guild_owner, guild_roles, member_r # member specific for overwrite in remaining_overwrites: - if overwrite["type"] == "member" and overwrite["id"] == str(session.get("user_id")): + if overwrite["type"] == "member" and overwrite["id"] == str(user_id): channel_perm = (channel_perm & ~overwrite['deny']) | overwrite['allow'] break