fixed 支持自定义仓库大小限制,bug
This commit is contained in:
parent
89f6f640e1
commit
4c2cc2a658
|
|
@ -172,11 +172,6 @@ func getAssignmentRepo(ctx *context.APIContext, id int64) {
|
|||
return
|
||||
}
|
||||
ctx.Repo.Repository = repo
|
||||
|
||||
if !ctx.Repo.HasAccess() {
|
||||
ctx.NotFound()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func getAssignmentRepoByName(ctx *context.APIContext, ownerName string, repoName string) {
|
||||
|
|
@ -199,11 +194,6 @@ func getAssignmentRepoByName(ctx *context.APIContext, ownerName string, repoName
|
|||
return
|
||||
}
|
||||
ctx.Repo.Repository = repo
|
||||
|
||||
if !ctx.Repo.HasAccess() {
|
||||
ctx.NotFound()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// UpdateDelegateHooks creates all the hooks scripts for the repo
|
||||
|
|
|
|||
Loading…
Reference in New Issue