From 0d6373b9f6d66eed0ea59a80a52752a93bae9584 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Mon, 2 Oct 2023 19:01:10 +0200 Subject: [PATCH] Fixed permission check --- .../src/modules/permission/service/permission_service.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kdb-bot/src/modules/permission/service/permission_service.py b/kdb-bot/src/modules/permission/service/permission_service.py index d31d2120..63199f2b 100644 --- a/kdb-bot/src/modules/permission/service/permission_service.py +++ b/kdb-bot/src/modules/permission/service/permission_service.py @@ -50,11 +50,8 @@ class PermissionService(PermissionServiceABC): return member is not None and member in self.get_admins(member.guild.id) def is_member_moderator(self, member: discord.Member) -> bool: - return ( - member is not None - and member in self.get_admins(member.guild.id) - or member in self.get_moderators(member.guild.id) - ) + return member is not None and (member in self.get_admins(member.guild.id) or member in self.get_moderators(member.guild.id)) + def is_member_technician(self, member: discord.Member) -> bool: config = self._technician_configs.get_technician_config()