mirror of https://github.com/gogs/gogs.git
repo/setting: fix admin cannot transfer organizational repository
parent
d1f0bc48ce
commit
6c3424dc3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue