added file upload and storage
This commit is contained in:
5
lib/auth/checkRole.ts
Normal file
5
lib/auth/checkRole.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Role } from '@prisma/client'
|
||||
|
||||
export function canUploadOrViewFiles(role: Role | undefined | null): boolean {
|
||||
return role === 'COUPLE' || role === 'PLANNER'
|
||||
}
|
||||
Reference in New Issue
Block a user