diff --git a/gogs.go b/gogs.go index 2a18b4de9d6..341d82b68cf 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/base" ) -const APP_VER = "0.3.4.0513 Alpha" +const APP_VER = "0.3.4.0514 Alpha" func init() { base.AppVer = APP_VER diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index cd435391224..863860e7eb9 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -100,7 +100,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler { } // Check if the mirror repository owner(mirror repository doesn't have access). - if !ctx.Repo.IsOwner && repo.OwnerId == ctx.User.Id { + if ctx.IsSigned && !ctx.Repo.IsOwner && repo.OwnerId == ctx.User.Id { ctx.Repo.IsOwner = true }