From 6c3424dc3f570be1dbc89429beba29e093c33afe Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 7 Mar 2017 18:51:24 -0500 Subject: [PATCH] repo/setting: fix admin cannot transfer organizational repository --- routers/repo/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 3573bbee2..015c42c16 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