403 means the project exists, but the user has no role to it

This commit is contained in:
Wenkai Yin 2016-07-15 14:14:27 +08:00
parent d78850fd1f
commit c6f7c08206

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
}