diff --git a/kdb-bot/src/bot_graphql/abc/query_abc.py b/kdb-bot/src/bot_graphql/abc/query_abc.py index 7a397f42..1a566a94 100644 --- a/kdb-bot/src/bot_graphql/abc/query_abc.py +++ b/kdb-bot/src/bot_graphql/abc/query_abc.py @@ -79,6 +79,14 @@ class QueryABC(ObjectType): permissions: PermissionService = services.get_service(PermissionService) bot: DiscordBotServiceABC = services.get_service(DiscordBotServiceABC) + if user.auth_role == AuthRoleEnum.admin: + return True + + for u in user.users: + guild = bot.get_guild(u.server.discord_id) + if permissions.is_member_technician(guild.get_member(u.discord_id)): + return True + access = False if type(element) == Achievement: element: Achievement = element