feat(19-04): user authorizer, user.Deleting and handle backfill

Register lighthouse user:{id} if the namespace is free, fire user.Deleting before unscoped delete, and backfill missing handles.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-17 21:53:21 +02:00
parent 15b19c7021
commit c0770294a5
9 changed files with 190 additions and 5 deletions

View File

@@ -522,6 +522,9 @@ func (c usersAdminController) FormAfterDelete(ctx context.Context, model any) er
if !ok {
return errors.New("users admin: a delete needs its transaction")
}
if err := FireDeletingEvent(ctx, c.application(), user, tx); err != nil {
return fmt.Errorf("%s: %w", classes.DeletingEventName, err)
}
if err := classes.ForceDeleteCleanup(ctx, tx, c.bucket(), user); err != nil {
return err
}