Merge pull request #19 from toshywoshy/noowner0
newer gitea doesn't always return owner as the first teampull/20/head
commit
2845d9bd4b
|
|
@ -250,7 +250,7 @@ func mainJob() {
|
||||||
log.Printf("Skip synchronization in the Owners team")
|
log.Printf("Skip synchronization in the Owners team")
|
||||||
cfg.ApiKeys.BruteforceTokenKey = 0
|
cfg.ApiKeys.BruteforceTokenKey = 0
|
||||||
|
|
||||||
for j := 1; j < len(teamList); j++ {
|
for j := 0; j < len(teamList); j++ {
|
||||||
|
|
||||||
// preparing request to ldap server
|
// preparing request to ldap server
|
||||||
filter := fmt.Sprintf(cfg.LdapFilter, teamList[j].Name)
|
filter := fmt.Sprintf(cfg.LdapFilter, teamList[j].Name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue