Browse Source

repo/setting: fix admin cannot delete organizational repository wiki

Unknwon 8 years ago
parent
commit
d1f0bc48ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      routers/repo/setting.go

+ 1 - 1
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