jmoore-skild
4ec0f3f9f2
fix(backup): resolve a restored archive's owner by username, not by id ( #2656 )
...
created_by_id is only meaningful on the instance that wrote it. Restoring
onto a rebuilt instance - this feature's main use case - renumbers the
users table, so a live id can land on a different person and hand one
user's print history to another under archives:read_own. The id path
cannot even detect that: archivesOwnerCleared fires only for an id that
is absent, so a valid-but-wrong id produced no note at all.
The collector now records created_by_username alongside the id, and the
restore prefers it. username is unique on users, so a match is the same
person; the one case it cannot resolve - a user renamed since the backup
- falls through to ownerless with a note rather than guessing from the
id. The id stays as the fallback for backups taken before this change.
2026-08-05 16:09:20 -04:00
..
2026-08-04 08:57:34 -04:00
2026-08-04 08:33:30 +02:00
2026-05-15 09:21:43 +02:00
2026-05-17 10:54:28 +02:00
2026-07-31 11:08:58 +03:00
2026-07-12 08:44:53 +02:00
2026-07-28 15:05:28 +02:00
2026-07-29 11:51:30 +02:00
2026-08-04 11:47:17 +02:00
2026-03-04 13:33:19 +01:00
2026-07-30 09:49:56 +02:00
2026-07-14 11:52:56 +02:00
2026-05-22 13:55:16 +02:00
2026-07-31 09:30:06 +02:00
2026-07-28 14:49:50 +02:00
2026-05-24 10:16:30 +02:00
2026-02-24 08:18:02 +01:00
2026-04-13 13:24:28 +02:00
2026-07-31 14:50:25 +02:00
2026-07-31 08:47:57 +02:00
2026-07-31 14:50:25 +02:00
2026-06-22 10:00:02 +02:00
2026-07-13 09:18:17 +02:00
2026-06-10 10:59:27 +02:00
2026-06-06 10:41:28 +02:00
2026-07-18 09:33:22 +02:00
2026-08-05 16:09:20 -04:00
2026-08-05 16:09:20 -04:00
2026-06-26 14:40:25 +02:00
2026-07-31 08:18:05 +02:00
2026-07-07 10:31:19 +02:00
2026-07-31 09:33:35 +02:00
2026-08-05 11:14:57 +02:00
2026-08-03 11:10:11 +02:00
2026-07-12 08:44:53 +02:00
2026-06-17 11:33:23 +02:00
2026-05-22 16:31:16 +02:00
2026-07-29 12:36:17 +02:00
2026-07-20 13:04:35 +02:00
2026-05-22 09:28:43 +02:00
2026-07-21 07:26:19 +02:00
2026-07-28 11:16:22 -05:00
2026-04-19 13:51:58 +02:00
2026-07-06 13:03:22 +02:00
2026-07-30 13:52:56 +02:00
2026-06-22 08:15:29 +02:00
2026-07-31 13:39:17 +02:00
2026-04-13 09:54:26 +02:00
2026-05-15 08:50:37 +02:00
2026-05-08 11:52:42 +02:00
2026-07-17 08:16:35 +02:00
2026-03-03 13:34:03 +01:00
2026-06-27 16:52:05 +02:00
2026-07-30 13:05:15 +02:00
2026-06-19 07:28:09 +02:00
2026-07-11 14:22:31 +02:00
2026-06-12 10:14:06 +02:00
2026-08-04 11:11:36 +02:00
2026-07-31 12:55:05 +02:00
2026-08-04 11:11:36 +02:00
2026-08-04 08:49:49 +02:00
2026-07-31 14:28:17 +02:00
2026-08-05 08:12:42 +02:00
2026-07-31 08:18:05 +02:00
2026-07-24 09:15:03 +02:00
2026-07-31 15:14:01 +02:00
2026-07-30 17:14:07 +02:00
2026-08-03 14:10:02 +02:00
2026-06-25 09:26:33 +02:00
2026-06-10 08:39:21 +02:00
2026-07-22 09:57:27 +02:00
2026-06-26 16:48:22 +02:00
2026-07-21 10:21:11 +02:00
2026-06-08 09:30:16 +02:00
2026-06-10 08:39:21 +02:00
2026-05-08 14:28:41 +02:00
2026-08-05 11:04:59 +02:00
2026-06-23 09:59:05 +02:00
2026-06-02 12:12:54 +02:00
2026-07-31 08:18:05 +02:00
2026-07-15 07:29:16 +02:00