cleanup
This commit is contained in:
8
src/app/actions.ts
Normal file
8
src/app/actions.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
'use server'
|
||||
import { auth } from "@clerk/nextjs/server"
|
||||
import { env } from "~/env"
|
||||
|
||||
export async function isAdmin() {
|
||||
const userid = (await auth()).userId
|
||||
return (userid == env.ADMIN_USER_CLERK_ID)
|
||||
}
|
||||
Reference in New Issue
Block a user