From f64e0d17f452706dbd231e799ad5dcd8dfcbc807 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 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..540857cc 100644 --- a/kdb-bot/src/modules/permission/service/permission_service.py +++ b/kdb-bot/src/modules/permission/service/permission_service.py @@ -50,10 +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: