diff options
author | Unknwon <u@gogs.io> | 2017-03-07 18:51:24 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-07 18:51:24 -0500 |
commit | 6c3424dc3f570be1dbc89429beba29e093c33afe (patch) | |
tree | de848bd000d359fecdf146553f39e5b15631ad6c | |
parent | d1f0bc48ce23586b7649673308d7c09506a5a8f8 (diff) |
repo/setting: fix admin cannot transfer organizational repository
-rw-r--r-- | routers/repo/setting.go | 2 |
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 |