aboutsummaryrefslogtreecommitdiff
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-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