mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Corrected the registryURL var name
This commit is contained in:
parent
72b44a17c6
commit
804759cbdb
@ -109,7 +109,7 @@ func FilterAccess(username string, a *token.ResourceActions) {
|
||||
repoLength := len(repoSplit)
|
||||
if repoLength > 1 { //Only check the permission when the requested image has a namespace, i.e. project
|
||||
var projectName string
|
||||
registryUrl := os.Getenv("HARBOR_REG_URL")
|
||||
registryURL := os.Getenv("HARBOR_REG_URL")
|
||||
if repoSplit[0] == registryUrl {
|
||||
projectName = repoSplit[1]
|
||||
log.Infof("Detected Registry URL in Project Name. Assuming this is a notary request and setting Project Name as %s\n", projectName)
|
||||
|
Loading…
Reference in New Issue
Block a user