mirror of
https://github.com/goharbor/harbor.git
synced 2024-07-17 17:35:39 +02: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…
Reference in New Issue
Block a user