Compare commits

..

No commits in common. "ca5db6d3972b7168e087daa32ee00147c75e3a20" and "31c62b4108551e91cf571bd1537de390659bddb3" have entirely different histories.

2 changed files with 8 additions and 1 deletions

View File

@ -86,6 +86,11 @@ class AuthController:
@Route.post(f"{BasePath}/register-by-id/<id>")
async def register_id(self, id: str):
if not FeatureFlagsSettings.get_flag_from_dict(
self._technician_config.feature_flags, FeatureFlagsEnum.basic_registration
):
return
result = await self._auth_service.confirm_email_async(id)
return jsonify(result)

View File

@ -101,7 +101,9 @@ class QueryABC(ObjectType):
element: Achievement = element
for u in user.users:
u: User = u
if u.server.id == element.server.id:
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:
access = True
break