diff --git a/server/modules/authentication/discord/authentication.js b/server/modules/authentication/discord/authentication.js index 354768e9..aea2a2a1 100644 --- a/server/modules/authentication/discord/authentication.js +++ b/server/modules/authentication/discord/authentication.js @@ -27,7 +27,6 @@ module.exports = { const { roles } = await discord.getGuildMember(accessToken, conf.guildId); if (authRoles.every(role => roles.includes(role)) throw new WIKI.Error.AuthLoginFailed() - } } else if (conf.guildId && !_.some(profile.guilds, { id: conf.guildId })) { throw new WIKI.Error.AuthLoginFailed() }