added file upload and storage

This commit is contained in:
2025-07-11 14:21:51 -04:00
parent 14cbbccd3a
commit 31ce343566
8 changed files with 240 additions and 2 deletions

5
lib/auth/checkRole.ts Normal file
View File

@@ -0,0 +1,5 @@
import { Role } from '@prisma/client'
export function canUploadOrViewFiles(role: Role | undefined | null): boolean {
return role === 'COUPLE' || role === 'PLANNER'
}