aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3573bbee..015c42c1 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -199,7 +199,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