Browse Source

repo/setting: fix admin cannot delete organizational repository wiki

pull/4264/head
Unknwon 8 years ago
parent
commit
d1f0bc48ce
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      routers/repo/setting.go

2
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

Loading…
Cancel
Save