Allow project developer to edit repository description

This commit is contained in:
Wenkai Yin 2017-12-15 19:59:52 +08:00
parent 068d6a35df
commit 42c9c439f9

View File

@ -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
}