diff options
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | models/repo.go | 4 | ||||
-rw-r--r-- | templates/.VERSION | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -16,7 +16,7 @@ import ( "github.com/gogs/gogs/pkg/setting" ) -const APP_VER = "0.11.56.0613" +const APP_VER = "0.11.57.0616" func init() { setting.AppVer = APP_VER diff --git a/models/repo.go b/models/repo.go index 3efb3635..b15b0175 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1653,11 +1653,11 @@ func SearchRepositoryByName(opts *SearchRepoOptions) (repos []*Repository, count // this does not include other people's private repositories even if opts.UserID is an admin. if !opts.Private && opts.UserID > 0 { sess.Join("LEFT", "access", "access.repo_id = repo.id"). - Where("(repo.owner_id = ? OR access.user_id = ? OR repo.is_private = ? OR (repo.is_private = ? AND (repo.allow_public_wiki = ? OR repo.allow_public_issues = ?)))", opts.UserID, opts.UserID, false, true, true, true) + Where("repo.owner_id = ? OR access.user_id = ? OR repo.is_private = ? OR (repo.is_private = ? AND (repo.allow_public_wiki = ? OR repo.allow_public_issues = ?))", opts.UserID, opts.UserID, false, true, true, true) } else { // Only return public repositories if opts.Private is not set if !opts.Private { - sess.And("(repo.is_private = ? OR (repo.is_private = ? AND (repo.allow_public_wiki = ? OR repo.allow_public_issues = ?))", false, true, true, true) + sess.And("repo.is_private = ? OR (repo.is_private = ? AND (repo.allow_public_wiki = ? OR repo.allow_public_issues = ?))", false, true, true, true) } } if len(opts.Keyword) > 0 { diff --git a/templates/.VERSION b/templates/.VERSION index 613373b6..39ff1f4d 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.56.0613
\ No newline at end of file +0.11.57.0616
\ No newline at end of file |