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
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
|
||||
var projectName string
|
||||
registryURL := os.Getenv("HARBOR_REG_URL")
|
||||
if repoSplit[0] == registryUrl {
|
||||
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)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user