diff options
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 1095f08d..b4be4247 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -220,7 +220,7 @@ func Migrate(c *context.APIContext, f form.MigrateRepo) { c.Error(500, "GetUserByID", err) } return - } else if !org.IsOrganization() { + } else if !org.IsOrganization() && !c.User.IsAdmin { c.Error(403, "", "Given user is not an organization") return } |