Compare commits
2 Commits
31c62b4108
...
ca5db6d397
Author | SHA1 | Date | |
---|---|---|---|
ca5db6d397 | |||
7888783b6a |
@ -86,11 +86,6 @@ class AuthController:
|
|||||||
|
|
||||||
@Route.post(f"{BasePath}/register-by-id/<id>")
|
@Route.post(f"{BasePath}/register-by-id/<id>")
|
||||||
async def register_id(self, id: str):
|
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)
|
result = await self._auth_service.confirm_email_async(id)
|
||||||
return jsonify(result)
|
return jsonify(result)
|
||||||
|
|
||||||
|
@ -101,9 +101,7 @@ class QueryABC(ObjectType):
|
|||||||
element: Achievement = element
|
element: Achievement = element
|
||||||
for u in user.users:
|
for u in user.users:
|
||||||
u: User = u
|
u: User = u
|
||||||
guild = bot.get_guild(u.server.discord_id)
|
if u.server.id == element.server.id:
|
||||||
member = guild.get_member(u.discord_id)
|
|
||||||
if permissions.is_member_moderator(member) and u.server.id == element.server.id:
|
|
||||||
access = True
|
access = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user