aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-07 18:51:24 -0500
committerUnknwon <u@gogs.io>2017-03-07 18:51:24 -0500
commit6c3424dc3f570be1dbc89429beba29e093c33afe (patch)
treede848bd000d359fecdf146553f39e5b15631ad6c
parentd1f0bc48ce23586b7649673308d7c09506a5a8f8 (diff)
repo/setting: fix admin cannot transfer organizational repository
-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