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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user