diff --git a/routers/hat/repo/size_limit.go b/routers/hat/repo/size_limit.go index 25fe365..235a6f1 100644 --- a/routers/hat/repo/size_limit.go +++ b/routers/hat/repo/size_limit.go @@ -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