We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b1b08 commit 05b935cCopy full SHA for 05b935c
src/app/api/items/[unallocatedItemId]/unallocatedItemRequests/route.ts
@@ -32,8 +32,7 @@ export async function GET(
32
) {
33
// Validate session
34
const session = await auth();
35
- if (!session) return authenticationError("Session required");
36
- if (!session?.user) return authenticationError("User not found");
+ if (!session?.user) return authenticationError("Session required");
37
if (
38
session.user.type !== UserType.STAFF &&
39
session.user.type !== UserType.ADMIN &&
0 commit comments