fix: rbac implementation general issues (local squash)

This commit is contained in:
LukeGus
2025-12-27 03:04:17 -06:00
parent 4b257dc21c
commit 8af1911358
29 changed files with 2206 additions and 251 deletions

View File

@@ -48,11 +48,9 @@ export interface AccessRecord {
roleDisplayName: string | null;
grantedBy: string;
grantedByUsername: string;
permissionLevel: string;
permissionLevel: "view"; // Only view permission is supported
expiresAt: string | null;
createdAt: string;
lastAccessedAt: string | null;
accessCount: number;
}
import {
apiLogger,
@@ -3292,7 +3290,7 @@ export async function shareHost(
targetType: "user" | "role";
targetUserId?: string;
targetRoleId?: number;
permissionLevel: string;
permissionLevel: "view"; // Only view permission is supported
durationHours?: number;
},
): Promise<{ success: boolean }> {