Closed skull8888888 closed 2 weeks ago
[!IMPORTANT] Fix middleware path matcher and add workspace membership check in route.ts. Authorization: Add isCurrentUserMemberOfWorkspace check in POST function in route.ts to ensure user is a member of the workspace. Return 401 Unauthorized if user is not a member. Middleware: Change path matcher in middleware.ts from :path* to :path+ for /api/projects and /project. This description was created by for 9966bd7acde7ab76fd0e28d746c407ce9456b40b. It will automatically update as commits are pushed.
[!IMPORTANT] Fix middleware path matcher and add workspace membership check in route.ts.
route.ts
isCurrentUserMemberOfWorkspace
POST
middleware.ts
:path*
:path+
/api/projects
/project
This description was created by for 9966bd7acde7ab76fd0e28d746c407ce9456b40b. It will automatically update as commits are pushed.