Adding authorisation options for API access

- ldap currently the only supported method
adding authorisation options for local repositories
  - ldap groups per repo
This commit is contained in:
bpiraeus
2022-03-13 16:07:21 -07:00
committed by André Roth
parent ab18da351d
commit 836137f15d
14 changed files with 358 additions and 66 deletions
+6
View File
@@ -267,7 +267,13 @@ func apiPublishRepoOrSnapshot(c *gin.Context) {
return
}
err = CheckGroup(c, localRepo.LdapGroup)
if err != nil {
c.AbortWithError(403, err)
}
resources = append(resources, string(localRepo.Key()))
sources = append(sources, localRepo)
}
} else {