Merge branch 'master' of github.com:gogits/gogs

This commit is contained in:
Unknown 2014-03-17 04:33:59 -04:00
commit 5c3054c3b7
20 changed files with 124 additions and 116 deletions

View file

@ -78,7 +78,8 @@ func Single(ctx *middleware.Context, params martini.Params) {
}
func Setting(ctx *middleware.Context, params martini.Params) {
if !ctx.Repo.IsValid {
if !ctx.Repo.IsOwner {
ctx.Render.Error(404)
return
}