Fixed permission service
This commit is contained in:
parent
293c8cd81c
commit
9976c59302
@ -74,7 +74,7 @@ class PermissionService(PermissionServiceABC):
|
|||||||
self._logger.debug(__name__, f"Checking is member {member.name} {team_member_type.value}")
|
self._logger.debug(__name__, f"Checking is member {member.name} {team_member_type.value}")
|
||||||
|
|
||||||
has_permission = True in [
|
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(
|
for x in self._server_configs.get_server_config_by_server(
|
||||||
self._servers.get_server_by_discord_id(member.guild.id).id
|
self._servers.get_server_by_discord_id(member.guild.id).id
|
||||||
).team_role_ids
|
).team_role_ids
|
||||||
|
Loading…
Reference in New Issue
Block a user