Merge pull request #19 from toshywoshy/noowner0

newer gitea doesn't always return owner as the first team
pull/20/head
Alex 2022-05-27 11:32:09 -07:00 committed by GitHub
commit 2845d9bd4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ func mainJob() {
log.Printf("Skip synchronization in the Owners team")
cfg.ApiKeys.BruteforceTokenKey = 0

for j := 1; j < len(teamList); j++ {
for j := 0; j < len(teamList); j++ {

// preparing request to ldap server
filter := fmt.Sprintf(cfg.LdapFilter, teamList[j].Name)