mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 23:27:35 +00:00
resolved review concerns
This commit is contained in:
@@ -63,9 +63,10 @@ func IsSecretTypeValid(s string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func ConfigContainsEmail(iter []models.LoggedInUser, elem string) bool {
|
||||
for _, value := range iter {
|
||||
if value.Email == elem {
|
||||
// Checks if the passed in email already exists in the users slice
|
||||
func ConfigContainsEmail(users []models.LoggedInUser, email string) bool {
|
||||
for _, value := range users {
|
||||
if value.Email == email {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user