Skip to content

Commit

Permalink
fix role logic (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbr0wn authored Aug 29, 2024
1 parent 32e36dc commit 7f2f3ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mailvalidate/role_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func IsRoleAccountCheck(email string, roleAccounts *RoleAccounts) (bool, error)
}

for _, value := range roleAccounts.Contains {
if strings.Contains(value, user) || strings.Contains(user, value) {
if strings.Contains(user, value) {
return true, nil
}
}
Expand Down
2 changes: 1 addition & 1 deletion mailvalidate/role_emails.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ matches = [
'lab',
'labs',
'md',
'mt',
'no',
'pay',
'pd',
Expand Down Expand Up @@ -455,7 +456,6 @@ contains = [
'moreinfo',
'msstaff',
'msteachers',
'mt',
'music',
'myplex',
'namecheap',
Expand Down

0 comments on commit 7f2f3ad

Please sign in to comment.