Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Uppercase the email address before filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsAnd committed Sep 18, 2020
1 parent 8430939 commit f839ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get-user-event-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = async (context, token, graphUser) => {
context.log('userGroups', userGroups.length)

const userTabs = tabs.filter(tab => {
const matches = userGroups.filter(group => group.id === tab.GroupID || group.mail === tab.GroupID)
const matches = userGroups.filter(group => group.id === tab.GroupID || group.mail.toUpperCase() === tab.GroupID.toUpperCase())
return matches.length > 0
})

Expand Down

0 comments on commit f839ef1

Please # to comment.