enable gogs private mode

This commit is contained in:
Brad Rydzewski 2016-11-25 11:46:50 +01:00
parent 58682aa6a7
commit 658f999fcf

View file

@ -133,6 +133,9 @@ func (c *client) Repo(u *model.User, owner, name string) (*model.Repo, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if c.PrivateMode {
repo.Private = true
}
return toRepo(repo), nil return toRepo(repo), nil
} }