diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/context/repo.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index 770296b390..f9ed9327ff 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -236,12 +236,6 @@ func repoAssignment(ctx *Context, repo *models.Repository) { return } - if repo.Owner.IsOrganization() { - if !models.HasOrgVisible(repo.Owner, ctx.User) { - ctx.NotFound("HasOrgVisible", nil) - return - } - } ctx.Repo.Permission, err = models.GetUserRepoPermission(repo, ctx.User) if err != nil { ctx.ServerError("GetUserRepoPermission", err) |