mirror of
https://github.com/goharbor/harbor.git
synced 2024-08-28 14:59:37 +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)
|
project, _ := utils.ParseRepository(name)
|
||||||
if !ra.SecurityCtx.HasAllPerm(project) {
|
if !ra.SecurityCtx.HasWritePerm(project) {
|
||||||
ra.HandleForbidden(ra.SecurityCtx.GetUsername())
|
ra.HandleForbidden(ra.SecurityCtx.GetUsername())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user