Skip to content

Commit

Permalink
show user who created the repository instead of the organization in a…
Browse files Browse the repository at this point in the history
…ction feed (#5948)
  • Loading branch information
adelowo authored and lafriks committed Feb 3, 2019
1 parent 746cf22 commit 634cbaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1359,14 +1359,14 @@ func createRepository(e *xorm.Session, doer, u *User, repo *Repository) (err err
return fmt.Errorf("watchRepo: %v", err)
}
}
if err = newRepoAction(e, u, repo); err != nil {
if err = newRepoAction(e, doer, repo); err != nil {
return fmt.Errorf("newRepoAction: %v", err)
}

return nil
}

// CreateRepository creates a repository for the user/organization u.
// CreateRepository creates a repository for the user/organization.
func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err error) {
if !doer.IsAdmin && !u.CanCreateRepo() {
return nil, ErrReachLimitOfRepo{u.MaxRepoCreation}
Expand Down

0 comments on commit 634cbaa

Please sign in to comment.