mirror of
https://github.com/goharbor/harbor
synced 2025-04-29 21:16:23 +00:00
Merge pull request #3840 from ywk253100/171220_desc
Allow project developer to edit repository description
This commit is contained in:
commit
60d2204f33
@ -650,7 +650,7 @@ func (ra *RepositoryAPI) Put() {
|
||||
}
|
||||
|
||||
project, _ := utils.ParseRepository(name)
|
||||
if !ra.SecurityCtx.HasAllPerm(project) {
|
||||
if !ra.SecurityCtx.HasWritePerm(project) {
|
||||
ra.HandleForbidden(ra.SecurityCtx.GetUsername())
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user