From 9976c593029bc9bda3b9ae21fe061b04c15e249d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 3 Dec 2023 16:42:33 +0100 Subject: [PATCH] Fixed permission service --- bot/src/bot_core/service/permission_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/bot_core/service/permission_service.py b/bot/src/bot_core/service/permission_service.py index 96dc92a5..de76e15a 100644 --- a/bot/src/bot_core/service/permission_service.py +++ b/bot/src/bot_core/service/permission_service.py @@ -74,7 +74,7 @@ class PermissionService(PermissionServiceABC): self._logger.debug(__name__, f"Checking is member {member.name} {team_member_type.value}") has_permission = True in [ - member.guild.get_role(x.role_id) not in member.roles + member.guild.get_role(x.role_id) in member.roles for x in self._server_configs.get_server_config_by_server( self._servers.get_server_by_discord_id(member.guild.id).id ).team_role_ids