1
0
mirror of https://github.com/goharbor/harbor synced 2025-04-13 21:49:18 +00:00

Merge pull request from ywk253100/bug_fixes

403 means the project exists, but the user has no role to it
This commit is contained in:
Daniel Jiang 2016-07-15 14:26:42 +08:00 committed by GitHub
commit 20c135d859

View File

@ -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
}