fixed chat zustand bug
This commit is contained in:
@@ -10,7 +10,6 @@ if (!process.env.LIVEKIT_API_SECRET)
|
||||
export const GET = async () => {
|
||||
const session = await getServerSession();
|
||||
|
||||
console.log(session?.user.permissions);
|
||||
if (!session)
|
||||
return Response.json({ message: "Unauthorized" }, { status: 401 });
|
||||
const user = await prisma.user.findUnique({
|
||||
@@ -18,7 +17,6 @@ export const GET = async () => {
|
||||
id: session.user.id,
|
||||
},
|
||||
});
|
||||
console.log(user);
|
||||
|
||||
if (!user || !user.permissions.includes("AUDIO"))
|
||||
return Response.json({ message: "Missing permissions" }, { status: 401 });
|
||||
|
||||
Reference in New Issue
Block a user