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