1
0
Fork 0
forked from forgejo/forgejo

Check the token's owner and repository when registering a runner (#30406) (#30412)

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:
Zettat123 2024-04-11 19:29:53 +08:00 committed by Earl Warren
parent fd47240545
commit cb8ec2287f
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 19 additions and 0 deletions

View file

@ -95,6 +95,7 @@ func deleteUser(ctx context.Context, u *user_model.User, purge bool) (err error)
&actions_model.ActionRunner{OwnerID: u.ID},
&user_model.BlockedUser{BlockID: u.ID},
&user_model.BlockedUser{UserID: u.ID},
&actions_model.ActionRunnerToken{OwnerID: u.ID},
); err != nil {
return fmt.Errorf("deleteBeans: %w", err)
}