mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Merge remote-tracking branch 'upstream/dev' into dev-sync
This commit is contained in:
commit
04b1900c64
@ -140,14 +140,10 @@ func (p *ProjectAPI) Head() {
|
||||
return
|
||||
}
|
||||
|
||||
userID := p.ValidateUser()
|
||||
_ = p.ValidateUser()
|
||||
if project == nil {
|
||||
p.CustomAbort(http.StatusNotFound, http.StatusText(http.StatusNotFound))
|
||||
}
|
||||
|
||||
if !checkProjectPermission(userID, project.ProjectID) {
|
||||
p.CustomAbort(http.StatusForbidden, http.StatusText(http.StatusForbidden))
|
||||
}
|
||||
}
|
||||
|
||||
// Get ...
|
||||
|
Loading…
Reference in New Issue
Block a user