Update server/modules/authentication/discord/authentication.js

Co-authored-by: Tymoteusz Boba <Tymoteusz.Boba@gmail.com>
pull/6323/head
TomDakan 2 years ago committed by GitHub
parent c4f6976c7a
commit 7c4f4faf38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,16 +8,6 @@ const DiscordStrategy = require('passport-discord').Strategy
const DiscordOauth2 = require('./node_modules/discord-oauth2/index.js')
const _ = require('lodash')
// Checks for the existence of all of the required role IDs in the member's guild role IDs.
function hasRoles(memberRoles, authRoles) {
if (authRoles.every(value => {
return memberRoles.includes(value)
})) {
return true
} else {
return false
}
};
module.exports = {
init (passport, conf) {

Loading…
Cancel
Save