mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Fix obtaining userid in permissions calculation
This commit is contained in:
parent
281715ab9f
commit
8209a57524
@ -309,7 +309,7 @@ def get_channel_permission(channel, guild_id, guild_owner, guild_roles, member_r
|
|||||||
|
|
||||||
# member specific
|
# member specific
|
||||||
for overwrite in remaining_overwrites:
|
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']
|
channel_perm = (channel_perm & ~overwrite['deny']) | overwrite['allow']
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user