mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 13:34:48 +00:00
Merge pull request #554 from ywk253100/bug_fixes
403 means the project exists, but the user has no role to it
This commit is contained in:
commit
20c135d859
@ -256,7 +256,7 @@ func (c *Checker) projectExist() (exist, canWrite bool, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.StatusCode == http.StatusUnauthorized {
|
if resp.StatusCode == http.StatusForbidden {
|
||||||
exist = true
|
exist = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user