* fix org visibility bug * fix permission check * add integration tests * fix tests * change test user name for easier maintainance and fix test * fix test git repo name
This commit is contained in:
parent
e6cd4f3276
commit
81adf6ad86
88 changed files with 2873 additions and 22 deletions
|
@ -217,12 +217,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue