fix: update the permission for viewing provider pages

This commit is contained in:
2026-07-15 17:56:14 +07:00
parent 4b0acbfc69
commit 5c8d9f80b0
45 changed files with 362 additions and 340 deletions
@@ -12,7 +12,7 @@ import { getProviderConnectionAccess } from "@/lib/providers/connectionAccess";
*/
export async function POST(request) {
try {
const { user } = await getProviderConnectionAccess();
const { user } = await getProviderConnectionAccess(request);
const { accessToken, name } = await request.json();
if (!accessToken || typeof accessToken !== "string") {