fix(web): user details (#18253)

fix(server, web): user details
This commit is contained in:
Daimolean
2025-05-13 19:55:58 +08:00
committed by GitHub
parent c0ad12f279
commit dccbe0b3ed
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import type { PageLoad } from './$types';
export const load = (async ({ params }) => {
await authenticate({ admin: true });
await requestServerInfo();
const [user] = await searchUsersAdmin({ id: params.id }).catch(() => []);
const [user] = await searchUsersAdmin({ id: params.id, withDeleted: true }).catch(() => []);
if (!user) {
redirect(302, AppRoute.ADMIN_USERS);
}