Fixed achievement can see element

This commit is contained in:
Sven Heidemann 2024-01-26 11:53:51 +01:00
parent 7888783b6a
commit ca5db6d397

View File

@ -101,9 +101,7 @@ class QueryABC(ObjectType):
element: Achievement = element
for u in user.users:
u: User = u
guild = bot.get_guild(u.server.discord_id)
member = guild.get_member(u.discord_id)
if permissions.is_member_moderator(member) and u.server.id == element.server.id:
if u.server.id == element.server.id:
access = True
break