1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 18:58:38 +00:00

fix repo setting and delete repo

This commit is contained in:
slene
2014-03-17 14:36:28 +08:00
parent d64a8e8d3a
commit 3a2eee0827
7 changed files with 77 additions and 75 deletions

View File

@@ -65,7 +65,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
}