Ensure all the API routes reject banned users

This commit is contained in:
Keith Stevens
2023-01-10 19:16:13 +09:00
parent 600f7f7381
commit d94cb4b2d6
13 changed files with 51 additions and 117 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import withRole from "src/lib/auth";
import { withRole } from "src/lib/auth";
import prisma from "src/lib/prismadb";
/**
+1 -1
View File
@@ -1,4 +1,4 @@
import withRole from "src/lib/auth";
import { withRole } from "src/lib/auth";
import prisma from "src/lib/prismadb";
// The number of users to fetch in any request.