mirror of
https://github.com/goharbor/harbor
synced 2025-04-13 21:49:18 +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
|
||||
}
|
||||
|
||||
if resp.StatusCode == http.StatusUnauthorized {
|
||||
if resp.StatusCode == http.StatusForbidden {
|
||||
exist = true
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user