mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-10 18:50:57 +00:00
Backport #30406 Fix #30378 (cherry picked from commit 55990ebf9240fced8c58491521fc21bf4a4d8f23) Conflicts: services/user/delete.go trivial context conflict because of `[MODERATION] User blocking`
This commit is contained in:
parent
fd47240545
commit
cb8ec2287f
4 changed files with 19 additions and 0 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
actions_model "code.gitea.io/gitea/models/actions"
|
||||
"code.gitea.io/gitea/models/db"
|
||||
"code.gitea.io/gitea/models/perm"
|
||||
repo_model "code.gitea.io/gitea/models/repo"
|
||||
|
@ -401,6 +402,8 @@ func DeleteOrganization(ctx context.Context, org *Organization) error {
|
|||
&TeamUnit{OrgID: org.ID},
|
||||
&TeamInvite{OrgID: org.ID},
|
||||
&secret_model.Secret{OwnerID: org.ID},
|
||||
&actions_model.ActionRunner{OwnerID: org.ID},
|
||||
&actions_model.ActionRunnerToken{OwnerID: org.ID},
|
||||
); err != nil {
|
||||
return fmt.Errorf("DeleteBeans: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue