diff options
author | JakobDev <jakobdev@gmx.de> | 2023-10-19 15:16:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 13:16:11 +0000 |
commit | 3dc0c962bf3a74188bed02c01b4d34636112805a (patch) | |
tree | 588d9e7d8fbc3a4a862f466cada768558a09cc93 /routers/api/v1/org/org.go | |
parent | 398eccb322f64dded83a119467af2cb38f6dbd46 (diff) | |
download | gitea-3dc0c962bf3a74188bed02c01b4d34636112805a.tar.gz gitea-3dc0c962bf3a74188bed02c01b4d34636112805a.zip |
Delete repos of org when purge delete user (#27273)
Fixes https://codeberg.org/forgejo/forgejo/issues/1514
I had to remove `RenameOrganization` to avoid circular import.
We should really add some foreign keys to the database.
Diffstat (limited to 'routers/api/v1/org/org.go')
-rw-r--r-- | routers/api/v1/org/org.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 4579f3b085..6fb8ecd403 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -385,7 +385,7 @@ func Delete(ctx *context.APIContext) { // "404": // "$ref": "#/responses/notFound" - if err := org.DeleteOrganization(ctx, ctx.Org.Organization); err != nil { + if err := org.DeleteOrganization(ctx, ctx.Org.Organization, false); err != nil { ctx.Error(http.StatusInternalServerError, "DeleteOrganization", err) return } |