mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
remove deprecated random seed and other minor staticcheck errors (#10851)
This commit is contained in:
parent
52fe09d0b1
commit
5f1f797281
4 changed files with 10 additions and 7 deletions
|
@ -200,7 +200,7 @@ func (handler *Handler) syncUserTeamsWithLDAPGroups(user *portainer.User, settin
|
|||
|
||||
func teamExists(teamName string, ldapGroups []string) bool {
|
||||
for _, group := range ldapGroups {
|
||||
if strings.ToLower(group) == strings.ToLower(teamName) {
|
||||
if strings.EqualFold(group, teamName) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue