From 02009235249b5b60a806368fc72a1c97f361378c Mon Sep 17 00:00:00 2001 From: "Jeremy \"EndenDragon\" Zhang" Date: Sat, 27 May 2017 09:39:38 -0700 Subject: [PATCH] Pop guild key during fetch if revoked Because the key is supposedly no good --- webapp/titanembeds/blueprints/api/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/titanembeds/blueprints/api/api.py b/webapp/titanembeds/blueprints/api/api.py index 17f4d92..bc35f24 100644 --- a/webapp/titanembeds/blueprints/api/api.py +++ b/webapp/titanembeds/blueprints/api/api.py @@ -295,6 +295,8 @@ def fetch(): messages = {} if status['banned'] or status['revoked']: status_code = 403 + if user_unauthenticated(): + session['user_keys'].pop(guild_id, None) else: chan = filter_guild_channel(guild_id, channel_id) if not chan.get("read"):