aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-07 15:51:53 -0500
committerUnknwon <u@gogs.io>2017-03-07 15:51:53 -0500
commitd1f0bc48ce23586b7649673308d7c09506a5a8f8 (patch)
treebab15e35d9132260128c422d0dcf44a7fbbd6742
parentbb005f3f9a606a5e94da4fc274d3c21234d98090 (diff)
repo/setting: fix admin cannot delete organizational repository wiki
-rw-r--r--routers/repo/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index a6a446ff..3573bbee 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -264,7 +264,7 @@ func SettingsPost(ctx *context.Context, f form.RepoSetting) {
return
}
- if ctx.Repo.Owner.IsOrganization() {
+ if ctx.Repo.Owner.IsOrganization() && !ctx.User.IsAdmin {
if !ctx.Repo.Owner.IsOwnedBy(ctx.User.ID) {
ctx.Error(404)
return