feat: add local access control and managed point clouds

This commit is contained in:
2026-07-22 11:05:48 +08:00
parent 683e4d6c07
commit 8555aa2f2e
46 changed files with 1982 additions and 884 deletions

View File

@@ -23,14 +23,17 @@ type AuthenticatedUser = NonNullable<TrpcContext["user"]>;
function createAuthContext(): TrpcContext {
const user: AuthenticatedUser = {
id: 1,
openId: "test-user",
username: "test-user",
passwordHash: null,
email: "test@example.com",
name: "Test User",
loginMethod: "manus",
role: "user",
role: "admin",
isActive: 1,
mustChangePassword: 0,
sessionVersion: 0,
createdAt: new Date(),
updatedAt: new Date(),
lastSignedIn: new Date(),
lastLoginAt: new Date(),
};
return {