summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index a22c6e17a7..33451ecc2e 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1231,7 +1231,7 @@ func SearchRepositoryByName(opt SearchOption) (repos []*Repository, err error) {
sess.Where("owner_id=?", opt.Uid)
}
if !opt.Private {
- sess.And("is_private=false")
+ sess.And("is_private=?", false)
}
sess.And("lower_name like ?", "%"+opt.Keyword+"%").Find(&repos)
return repos, err