Browse Source

Merge pull request #19 from toshywoshy/noowner0

newer gitea doesn't always return owner as the first team
pull/20/head
Alex 2 years ago committed by GitHub
parent
commit
2845d9bd4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      gitea-group-sync.go

2
gitea-group-sync.go

@ -250,7 +250,7 @@ func mainJob() { @@ -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)

Loading…
Cancel
Save