mirror of
https://github.com/gogs/gogs.git
synced 2026-07-06 01:17:53 +02:00
repo/setting: fix admin cannot delete organizational repository wiki
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user