mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 18:11:23 +01:00
Cast user_id to string during comparison to fix guest posting
This commit is contained in:
parent
ded1a48ef1
commit
207e13b639
@ -217,7 +217,7 @@ def post():
|
||||
channel_id = request.form.get('channel_id')
|
||||
content = request.form.get('content')
|
||||
if "user_id" in session:
|
||||
dbUser = GuildMembers.query.filter(GuildMembers.guild_id == guild_id).filter(GuildMembers.user_id == session['user_id']).first()
|
||||
dbUser = GuildMembers.query.filter(GuildMembers.guild_id == guild_id).filter(GuildMembers.user_id == str(session['user_id'])).first()
|
||||
else:
|
||||
dbUser = None
|
||||
if user_unauthenticated():
|
||||
|
Loading…
Reference in New Issue
Block a user